示例#1
0
        private void SendAMessage()
        {
            var bus = BusFactory.Create();

            var publisher = new DemoPublisher(bus);
            publisher.Publish();

            bus.Dispose();
        }
示例#2
0
        private void SendAMessage()
        {
            var bus = BusFactory.Create();

            var publisher = new DemoPublisher(bus);

            publisher.Publish();

            bus.Dispose();
        }