예제 #1
0
 public FetchMachine(IFetchDispatcher fetchDispatcher, int numberOfWorkers = 4)
 {
     for (int i = 0; i < numberOfWorkers; i++)
     {
         _worker.Add(new FetchWorker(fetchDispatcher));
     }
 }
예제 #2
0
 public FetchWorker(IFetchDispatcher fetchDispatcher)
 {
     _fetchDispatcher = fetchDispatcher;
 }