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));
 }
 public BanFileMonitorsController(
     ILogger <BanFileMonitorsController> logger,
     IAuthorizationService authorizationService,
     IBanFileMonitorsRepository banFileMonitorsRepository,
     IGameServersRepository gameServersRepository)
 {
     _banFileMonitorsRepository = banFileMonitorsRepository ?? throw new ArgumentNullException(nameof(banFileMonitorsRepository));
     _gameServersRepository     = gameServersRepository ?? throw new ArgumentNullException(nameof(gameServersRepository));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _authorizationService = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
 }
Exemplo n.º 3
0
 public BanFileMonitor(
     ILogger <BanFileMonitor> logger,
     IBanFileMonitorsRepository banFileMonitorsRepository,
     IFtpHelper ftpHelper,
     IBanFileIngest banFileIngest,
     IBanFilesRepository banFilesRepository)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _banFileMonitorsRepository = banFileMonitorsRepository ?? throw new ArgumentNullException(nameof(banFileMonitorsRepository));
     _ftpHelper          = ftpHelper ?? throw new ArgumentNullException(nameof(ftpHelper));
     _banFileIngest      = banFileIngest;
     _banFilesRepository = banFilesRepository ?? throw new ArgumentNullException(nameof(banFilesRepository));
 }