private void SendAMessage() { var bus = BusFactory.Create(); var publisher = new DemoPublisher(bus); publisher.Publish(); bus.Dispose(); }