コード例 #1
0
 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>();
 }
コード例 #2
0
 public UnitsAccess(IUnitsBearerTokenManager bearerTokenManager,
                    ILogger <UnitsAccess> logger)
 {
     _bearerTokenManager = bearerTokenManager ?? throw new ArgumentNullException(nameof(bearerTokenManager));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }