public async Task ExecuteAsync(GameOrdersCountUpdatedCommand command) { _logger.LogInformation( $"{nameof(GameOrdersCountUpdatedCommand)} has been triggered with parameter {command.ToJsonString()}"); UpdateGameOrderCountCommand updateOrderCount = _mapper.Map <UpdateGameOrderCountCommand>(command); await _mediator.Send(updateOrderCount); }
public async Task Handle(GameOrderCountUpdatedEvent @event) { UpdateGameOrderCountCommand command = new UpdateGameOrderCountCommand(@event.GameId, @event.CountOfOrders); await _mediator.Send(command); }