Beispiel #1
0
        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));
        }
Beispiel #2
0
 public Task Handle(GameUpdatedPublicEvent notification, CancellationToken cancellationToken)
 => Handle((IPublicEvent)notification, cancellationToken);