Exemplo n.º 1
0
 public QueueWorker(Action <TWorkItem> callback, Action <TWorkItem> cleanup)
 {
     this._callback   = callback;
     this._cleanup    = cleanup;
     this._workerTask = SignalTask.Create(new Action(this.Worker));
 }
Exemplo n.º 2
0
 public AsyncFifoWorker()
 {
     this._signalTask = new SignalTask(new Func <Task>(this.Worker));
 }
 public FifoTaskScheduler(CancellationToken cancellationToken)
 {
     this._workerTask = new SignalTask(new Func <Task>(this.Worker), cancellationToken);
 }
Exemplo n.º 4
0
 public AsyncFifoWorker(CancellationToken cancellationToken)
 {
     this._signalTask = new SignalTask(new Func <Task>(this.Worker), cancellationToken);
 }