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(); } }