Exemplo n.º 1
0
        private void ExecuteEventFeedingToEnd(IEventFeedsRunner eventFeedsRunner, TimeSpan[] bladeDelays)
        {
            eventFeedsRunner.ExecuteForcedFeeding(delayUpperBound: bladeDelays.Max());
            eventFeedsRunner.Stop();

            Console.Out.WriteLine($"producedEventsCount: {eventSource.Timeline.Count}, consumedEventsCount: {eventConsumer.ConsumedEvents.Count}");
        }
 private static void StopFeeding(ref IEventFeedsRunner feedsRunner)
 {
     if (feedsRunner != null)
     {
         feedsRunner.Stop();
         feedsRunner = null;
     }
 }