예제 #1
0
        public async Task ExecuteAsync(GameOrdersCountUpdatedCommand command)
        {
            _logger.LogInformation(
                $"{nameof(GameOrdersCountUpdatedCommand)} has been triggered with parameter {command.ToJsonString()}");

            UpdateGameOrdersCountCommand updateOrderCount = _mapper.Map <UpdateGameOrdersCountCommand>(command);

            await _mediator.Send(updateOrderCount);
        }
 public async Task Handle(GameOrderCountUpdatedEvent @event)
 {
     UpdateGameOrdersCountCommand command = new UpdateGameOrdersCountCommand(@event.GameId, @event.CountOfOrders);
     await _mediator.Send(command);
 }