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; }
public WorkerService(WorkerQueue workerQueue, WorkerListener listener) { this.listener = listener; this.workerQueue = workerQueue; }