예제 #1
0
 public GameRound CreateGameRound(
     GameInfo gameInfo,
     SavedRoundState roundState)
 {
     return(new GameRound(
                gameInfo.Id,
                roundState,
                loggerFactory.CreateLogger <GameRound>()));
 }
예제 #2
0
 public GameRound(int gameId, SavedRoundState roundState, ILogger <GameRound> logger)
 {
     this.gameId     = gameId;
     this.roundState = roundState ?? throw new ArgumentNullException(nameof(roundState));
     this.logger     = logger ?? NullLogger <GameRound> .Instance;
 }