public async Task HandleAsync(IBus bus, ShipOrder message, TraceWriter Log)
        {
            Log.Info("order shipped");

            rep.AddOrderShipped(new OrderShipped {
                User = message.UserName
            });

            await bus.SendAsync(new ShipOrderResponse()
            {
                UserName = message.UserName
            }, message.ReplyTo);
        }
Esempio n. 2
0
        public async Task HandleAsync(IBus bus, ShipOrder message, ILogger Log)
        {
            Log.LogInformation("order shipped");

            rep.AddOrderShipped(new OrderShipped {
                User = message.UserName
            });

            await bus.ReplyAsync(new ShipOrderResponse()
            {
                UserName = message.UserName
            });
        }