private void LoadFakers(List <StockSymbol> stockSymbols) { foreach (var stockSymbol in stockSymbols) { if (_fakers.Count == 0 || _fakers.Count * 4 < _streamingSymbols.Count) { var tmp = new TickFaker(_fakeQueue); WireEventHandlers(tmp); tmp.Start(); _fakers.Add(tmp); } _fakeQueue.AddStockSymbols.Add(stockSymbol); } }
private void WireEventHandlers(TickFaker tickFaker) { var handler = new InternalTickHandler(PlantHandler); tickFaker.InternalTick += handler; }