public StreamStatusFunctions(ITwitchAuthenticator twitchAuthenticator, ILoggerFactory loggerFactory, IOptions <TwitchAuthenticatorConfig> config, IHttpClientFactory clientFactory) { _twitchAuthenticator = twitchAuthenticator; _config = config.Value; _log = loggerFactory.CreateLogger <StreamStatusFunctions>(); _httpClient = clientFactory.CreateClient(); }
public TwitchAuthenticator(HttpClient client, IOptions <TwitchAuthenticatorConfig> config, ILoggerFactory loggerFactory) { _log = loggerFactory.CreateLogger <TwitchAuthenticator>(); _client = client; _tokenCache = new Dictionary <string, TwitchAccessTokenResponse>(); _config = config.Value; _clientId = _config.ClientId; _clientSecret = _config.ClientSecret; }
public ChannelPointsFunctions(ITwitchAuthenticator twitchAuthenticator, ILoggerFactory loggerFactory, IOptions <TwitchAuthenticatorConfig> config) { _twitchAuthenticator = twitchAuthenticator; _config = config.Value; _log = loggerFactory.CreateLogger <ChannelPointsFunctions>(); }