예제 #1
0
 public SudokuGameController(IStartGameService startService, IGameProcessService processService, IGameStatisticsService statisticsService, ILogger logger)
 {
     this.startService      = startService;
     this.processService    = processService;
     this.statisticsService = statisticsService;
     this.logger            = logger;
 }
예제 #2
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="startGameService">Start game service.</param>
 /// <param name="ethereumNetworkConfigurationManager">Ethereum network configuration manager.</param>
 /// <param name="logger">The logger.</param>
 public StartGameBackgroundService(IStartGameService startGameService, IEthereumNetworkConfigurationManager ethereumNetworkConfigurationManager, ILogger <StartGameBackgroundService> logger)
     : base(TimeSpan.FromSeconds(1), logger: logger)
 {
     this._startGameService = startGameService ?? throw new ArgumentNullException(nameof(startGameService));
     this._ethereumNetworkConfigurationManager = ethereumNetworkConfigurationManager ?? throw new ArgumentNullException(nameof(ethereumNetworkConfigurationManager));
 }