Exemplo n.º 1
0
        public async Task Consume(ConsumeContext <BuyInMqCommand> context)
        {
            var response = await _service.BuyIn(context.Message.Id, context.Message.MinBuy, context.Message.MaxBuy);

            await context.RespondAsync <BodyResponse <MoneyMqResponse> >(response);
        }
Exemplo n.º 2
0
        public async Task Consume(ConsumeContext <BuyInMqCmd> context)
        {
            var response = await _service.BuyIn(context.Message.Id, context.Message.MinBuy, context.Message.MaxBuy, context.Message.Reason);

            await context.RespondAsync(response);
        }