public Task Handle(GameUpdatedEvent notification, CancellationToken cancellationToken) { var game = _context.Games.Find(notification.GameId); var gameDto = _mapper.Map <GameDto>(game); var @event = new GameUpdatedPublicEvent(game.Id, gameDto); return(_mediator.Publish(@event, cancellationToken)); }
public Task Handle(GameUpdatedPublicEvent notification, CancellationToken cancellationToken) => Handle((IPublicEvent)notification, cancellationToken);