예제 #1
0
        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);
            }
        }
예제 #2
0
        private void WireEventHandlers(TickFaker tickFaker)
        {
            var handler = new InternalTickHandler(PlantHandler);

            tickFaker.InternalTick += handler;
        }