예제 #1
0
 public DelegatedWorker(WorkItemConsumer workItemConsumer, SynchronizedList <TWorkItem> workItems)
     : base(workItems)
 {
     OnConsumeWorkItem = workItemConsumer;
 }
예제 #2
0
 public Worker(SynchronizedList <TWorkItem> workItems)
     : base(workItems.NotifyEvent)
 {
     WorkItems = workItems;
 }