Esempio n. 1
0
 public WorkerListener(WorkerQueue queue, IHubContext <WorkerHub> hubcontext, ILogger <WorkerListener> logger)
 {
     this.logger     = logger;
     this.queue      = queue;
     this.hubcontext = hubcontext;
     this.queue.WorkItemProcessed += this.OnWorkItemProcessed;
     this.queue.WorkItemFailed    += this.OnWorkItemFailed;
 }
Esempio n. 2
0
 public WorkerService(WorkerQueue workerQueue, WorkerListener listener)
 {
     this.listener    = listener;
     this.workerQueue = workerQueue;
 }