public SudokuGameController(IStartGameService startService, IGameProcessService processService, IGameStatisticsService statisticsService, ILogger logger) { this.startService = startService; this.processService = processService; this.statisticsService = statisticsService; this.logger = logger; }
/// <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)); }