Exemple #1
0
        private void DoASubscription()
        {
            var bus = BusFactory.Create();

            try
            {
                var subscriber = new DemoSubscriber(bus);
                subscriber.ListenForAMessage();

                Console.WriteLine("Press any key to exit.");
                Console.ReadKey();
            }
            finally
            {
                bus.Dispose();
            }
        }
Exemple #2
0
        private void DoASubscription()
        {
            var bus = BusFactory.Create();

            try
            {
                var subscriber = new DemoSubscriber(bus);
                subscriber.ListenForAMessage();

                Console.WriteLine("Press any key to exit.");
                Console.ReadKey();
            }
            finally
            {
                bus.Dispose();
            }
        }