예제 #1
0
 public AsyncWorker(AsyncWorkerJob workerJob)
 {
     if (workerJob == null)
     {
         throw new ArgumentNullException("workerJob");
     }
     _workerJob = workerJob;
 }
예제 #2
0
 public AsyncWorker(AsyncWorkerJob workerJob, string workerName = null)
 {
     if (workerJob == null)
     {
         throw new ArgumentNullException("workerJob");
     }
     _workerJob = workerJob;
     Name       = workerName;
 }
예제 #3
0
 public AsyncWorker(AsyncWorkerJob workerJob)
 {
     if (workerJob == null) throw new ArgumentNullException("workerJob");
     _workerJob = workerJob;
 }
예제 #4
0
 public AsyncWorker(AsyncWorkerJob workerJob, string workerName = null)
 {
     if (workerJob == null) throw new ArgumentNullException("workerJob");
     _workerJob = workerJob;
     Name = workerName;
 }