public Service(IBus bus) { Bus = bus; bus.AddRabbitChannel(x => x.AutoDelete().Direct("request")); bus.AddRabbitQueue(x => x.AutoDelete().QueueName("request").ExchangeName("request").StartSubscription().NoAck()); }
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()); }