示例#1
0
        public void Execute()
        {
            // Starting event consumer
            _eventConsumer.Start();

            Console.WriteLine("\r\nPress [enter] to stop the event consumer.\r\n\r\n");
            Console.ReadLine();

            // Stopping event consumer
            _eventConsumer.Stop();

            Console.WriteLine("\r\nPress [enter] to exit.\r\n\r\n");
            Console.ReadLine();
        }