public DataMaintenance( IPlayerLocationsRepository playerLocationsRepository, IPlayersCacheRepository playersCache, IGameServerStatusStatsRepository gameServerStatusStatsRepository, AzureTableLogger azureTableLogger) { _playerLocationsRepository = playerLocationsRepository ?? throw new ArgumentNullException(nameof(playerLocationsRepository)); _playersCache = playersCache ?? throw new ArgumentNullException(nameof(playersCache)); _gameServerStatusStatsRepository = gameServerStatusStatsRepository; _azureTableLogger = azureTableLogger ?? throw new ArgumentNullException(nameof(azureTableLogger)); }
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 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)); }