Work() public method

public Work ( int interval = 5 ) : void
interval int
return void
Example #1
0
 public System.Threading.Tasks.Task WorkAsync(params string[] queues)
 {
     var worker = new Worker(JobCreator, FailureService, Client, queues);
     Workers.Add(worker);
     return System.Threading.Tasks.Task.Factory.StartNew(() => worker.Work());
 }
Example #2
0
 public void Work(params string[] queues)
 {
     var worker = new Worker(JobCreator, FailureService, Client, queues);
     Workers.Add(worker);
     worker.Work();
 }