示例#1
0
 public SerializedBatchableWorker(IWorkDelegate <IList <T> > workHandler)
 {
     this.workHandler = workHandler;
     this.pendingList = new List <T>();
 }
示例#2
0
 public SerializedWorker(IWorkDelegate <T> workProcessor)
 {
     this.workDelegate    = workProcessor;
     this.state           = State.Idle;
     this.pendingWorkList = new LinkedList <T>();
 }