Exemple #1
0
        public async Task Consume(ConsumeContext <IPriceOrderRequest> context)
        {
            var bus = BusConfigurator.ConfigureBus();
            await bus.StartAsync();

            Pulse pulse    = new Pulse();
            var   response = await pulse.PriceOrder(context.Message.LocationCode, context.Message);

            PulseOrderProducer priceOrderProducer = new PulseOrderProducer(bus, context);
            await priceOrderProducer.PriceOrder(context.Message.LocationCode, response);
        }