Exemplo n.º 1
0
        protected override void RegisterConsumers(IConsumerHandler handler)
        {
            var container = ConsumerContainerBuilder.Create()
                            .Queue <SaveBookCommand>(ContextNames.Content.Book, ContextNames.Queue.Book, ContextNames.Exchange.Book)
                            .Build();

            handler.SetContainer(container);
        }
Exemplo n.º 2
0
        protected override void RegisterConsumers(IConsumerHandler handler)
        {
            var container = ConsumerContainerBuilder.Create()
                            .Queue <UpdateBookCommand>(ContextNames.Content.Purchase, ContextNames.Queue.Bookstore, ContextNames.Exchange.Bookstore)
                            .Queue <UpdateBookCommand>(ContextNames.Content.ShippingEvent, ContextNames.Queue.Bookstore, ContextNames.Exchange.Bookstore)
                            .Queue <UpdateBookCommand>(ContextNames.Content.UpdateBook, ContextNames.Queue.Book_Bookstore, ContextNames.Exchange.Bookstore)
                            .Build();

            handler.SetContainer(container);
        }
Exemplo n.º 3
0
        protected override void RegisterConsumers(IConsumerHandler handler)
        {
            var container = ConsumerContainerBuilder.Create()
                            .Queue <UpdateBookCommand>(ContextNames.Content.Reservation, ContextNames.Queue.Library, ContextNames.Exchange.Library)
                            .Queue <UpdateBookCommand>(ContextNames.Content.ReservationEvent, ContextNames.Queue.Library, ContextNames.Exchange.Library)
                            .Queue <UpdateBookCommand>(ContextNames.Content.ReservationExpired, ContextNames.Queue.Library, ContextNames.Exchange.Library)
                            .Queue <UpdateBookCommand>(ContextNames.Content.UpdateBook, ContextNames.Queue.Book_Library, ContextNames.Exchange.Book)
                            .Build();

            handler.SetContainer(container);
        }