Exemplo n.º 1
0
 public StatusController(
     IBanFileMonitorsRepository banFileMonitorsRepository,
     IGameServerStatusRepository gameServerStatusRepository,
     ILogFileMonitorStateRepository logFileMonitorStateRepository)
 {
     _banFileMonitorsRepository     = banFileMonitorsRepository ?? throw new ArgumentNullException(nameof(banFileMonitorsRepository));
     _gameServerStatusRepository    = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _logFileMonitorStateRepository = logFileMonitorStateRepository ?? throw new ArgumentNullException(nameof(logFileMonitorStateRepository));
 }
Exemplo n.º 2
0
 public FtpFileMonitor(
     IFileMonitorsRepository fileMonitorsRepository,
     IGameServerStatusRepository gameServerStatusRepository,
     ILogFileMonitorStateRepository logFileMonitorStateRepository,
     IServiceProvider serviceProvider,
     IFtpHelper ftpHelper)
 {
     _fileMonitorsRepository        = fileMonitorsRepository ?? throw new ArgumentNullException(nameof(fileMonitorsRepository));
     _gameServerStatusRepository    = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _logFileMonitorStateRepository = logFileMonitorStateRepository ?? throw new ArgumentNullException(nameof(logFileMonitorStateRepository));
     _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     _ftpHelper       = ftpHelper ?? throw new ArgumentNullException(nameof(ftpHelper));
 }