public UnitsSignalRClient(IUnitsBearerTokenManager bearerTokenManager, IUnitsBotClient botClient, ILogger <UnitsSignalRClient> logger) { _bearerTokenManager = bearerTokenManager ?? throw new ArgumentNullException(nameof(bearerTokenManager)); _botClient = botClient ?? throw new ArgumentNullException(nameof(botClient)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _hubConnections = new Dictionary <string, HubConnection>(); _requiresTokenRefresh = new Dictionary <string, bool>(); _authHttpClients = new Dictionary <string, HttpClient>(); }
public UnitsAccess(IUnitsBearerTokenManager bearerTokenManager, ILogger <UnitsAccess> logger) { _bearerTokenManager = bearerTokenManager ?? throw new ArgumentNullException(nameof(bearerTokenManager)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }