public virtual void Handle(GameWonEvent @event)
 {
     if(!_gameDetails.ContainsKey(@event.GameId)) return;
     var gameDetails = _gameDetails[@event.GameId];
     gameDetails.WinnerId = @event.PlayerId;
 }
예제 #2
0
 public void Handle(GameWonEvent @event)
 {
     state = GameState.Finished;
     winner = @event.PlayerId;
 }