Beispiel #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));
 }
Beispiel #2
0
 public UpdateGameServerStatus(
     LegacyPortalContext legacyContext,
     IGameServerStatusRepository gameServerStatusRepository,
     IGameServerStatusStatsRepository gameServerStatusStatsRepository,
     IPlayerIngest playerIngest)
 {
     _legacyContext = legacyContext ?? throw new ArgumentNullException(nameof(legacyContext));
     _gameServerStatusRepository      = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _gameServerStatusStatsRepository = gameServerStatusStatsRepository ?? throw new ArgumentNullException(nameof(gameServerStatusStatsRepository));
     _playerIngest = playerIngest ?? throw new ArgumentNullException(nameof(playerIngest));
 }
 public FuckYouCommandHandler(
     ILogger <FuckYouCommandHandler> logger,
     IGameServersRepository gameServersRepository,
     IGameServerStatusRepository gameServerStatusRepository,
     IRconClientFactory rconClientFactory) : base(new [] { "!fu" })
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _gameServersRepository      = gameServersRepository ?? throw new ArgumentNullException(nameof(gameServersRepository));
     _gameServerStatusRepository = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _rconClientFactory          = rconClientFactory ?? throw new ArgumentNullException(nameof(rconClientFactory));
 }
 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));
 }
Beispiel #5
0
 public ServersController(
     IGameServersRepository gameServersRepository,
     IGameServerStatusRepository gameServerStatusRepository,
     IMapsRepository mapsRepository,
     IPlayerLocationsRepository playerLocationsRepository,
     IGameServerStatusStatsRepository gameServerStatusStatsRepository)
 {
     _gameServersRepository           = gameServersRepository ?? throw new ArgumentNullException(nameof(gameServersRepository));
     _gameServerStatusRepository      = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _mapsRepository                  = mapsRepository ?? throw new ArgumentNullException(nameof(mapsRepository));
     _playerLocationsRepository       = playerLocationsRepository ?? throw new ArgumentNullException(nameof(playerLocationsRepository));
     _gameServerStatusStatsRepository = gameServerStatusStatsRepository ?? throw new ArgumentNullException(nameof(gameServerStatusStatsRepository));
 }
Beispiel #6
0
 public ServerAdminController(
     IAuthorizationService authorizationService,
     IGameServersRepository gameServersRepository,
     IGameServerStatusRepository gameServerStatusRepository,
     IRconClientFactory rconClientFactory,
     IChatLogsRepository chatLogsRepository,
     IPlayersRepository playersRepository)
 {
     _authorizationService       = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _gameServersRepository      = gameServersRepository ?? throw new ArgumentNullException(nameof(gameServersRepository));
     _gameServerStatusRepository = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _rconClientFactory          = rconClientFactory ?? throw new ArgumentNullException(nameof(rconClientFactory));
     _chatLogsRepository         = chatLogsRepository ?? throw new ArgumentNullException(nameof(chatLogsRepository));
     _playersRepository          = playersRepository ?? throw new ArgumentNullException(nameof(playersRepository));
 }
Beispiel #7
0
 public MapPopularityCommandHandler(
     ILogger <MapPopularityCommandHandler> logger,
     IGameServersRepository gameServersRepository,
     IMapPopularityRepository mapPopularityRepository,
     IRconClientFactory rconClientFactory,
     IGameServerStatusRepository gameServerStatusRepository,
     IPlayersRepository playersRepository) : base(new[] { "!like", "!dislike" })
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _gameServersRepository      = gameServersRepository ?? throw new ArgumentNullException(nameof(gameServersRepository));
     _mapPopularityRepository    = mapPopularityRepository ?? throw new ArgumentNullException(nameof(mapPopularityRepository));
     _rconClientFactory          = rconClientFactory ?? throw new ArgumentNullException(nameof(rconClientFactory));
     _gameServerStatusRepository = gameServerStatusRepository ?? throw new ArgumentNullException(nameof(gameServerStatusRepository));
     _playersRepository          = playersRepository ?? throw new ArgumentNullException(nameof(playersRepository));
 }