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