Example #1
0
        private void ProcessFeed(IFeedProvider feedProvider)
        {
            while (feedProvider.HasNext)
            {
                var randomeMilliSeconds = Randomizer.GetRandomNumber(1, 1) * 1000;
                //Thread.Sleep(randomeMilliSeconds);

                // raise new tick event
                NewTickEvent?.Invoke(this, new TickEventArgs(feedProvider.NextTick()));
            }
        }
 private void RaiseNewTickEvent(Tick tick)
 {
     NewTickEvent?.Invoke(this, new TickEventArgs(tick));
 }
 protected void RaiseNewTickEvent(Tick tick)
 {
     NewTickEvent?.Invoke(this, new TickEventArgs(tick));
 }