Exemplo n.º 1
0
 public BaseRestClient(TwitchRestConfig config)
 {
     Tokens              = new ConcurrentDictionary <ulong, RestTokenInfo>();
     _rest               = new RestApiClient(config);
     Logger.LogReceived += OnLogInternalAsync;
 }
Exemplo n.º 2
0
 public TwitchRestClient(TwitchRestConfig config)
     : base(config, CreateApiClient(config))
 {
 }
Exemplo n.º 3
0
 private static TwitchRestApiClient CreateApiClient(TwitchRestConfig config)
 => new TwitchRestApiClient(config.RestClientProvider, config.ClientId, TwitchConfig.UserAgent);
Exemplo n.º 4
0
 public TwitchRestClient(TwitchRestConfig config) : base(config)
 {
 }