コード例 #1
0
        public static void SendCommand <T>(this IBus bus, T command) where T : class
        {
            bus.ConfigureCommandTopology();
            var wrappedMessage = new Message <T>(command);
            var exchange       = new Exchange(QueueSpy.Messages.QueueSpyQueues.CommandQueue);

            bus.Advanced.Publish(exchange, typeof(T).Name, false, false, wrappedMessage);
        }