Exemplo n.º 1
0
        public Service(IBus bus)
        {
            Bus = bus;

            bus.AddRabbitChannel(x => x.AutoDelete().Direct("request"));
            bus.AddRabbitQueue(x => x.AutoDelete().QueueName("request").ExchangeName("request").StartSubscription().NoAck());
        }
Exemplo n.º 2
0
 private void WireUpMessageBus()
 {
     _bus.AddRabbitChannel(x => x.Fanout("shortorder.events").Durable().PersistentDelivery());
     _bus.AddRabbitQueue(x => x.QueueName("shortorder.events")
                         .ExchangeName("shortorder.events")
                         .NoAck()
                         .Durable()
                         .StartSubscription());
 }