Esempio n. 1
0
        internal TwitchApi(string clientId, IAccessTokenStrategy accessTokenStrategy, IRateLimitStrategy rateLimitStrategy)
        {
            _clientId = clientId;

            _accessTokenStrategy = accessTokenStrategy;
            _rateLimitStrategy   = rateLimitStrategy;

            Clips   = new ClipActions(GetHttpClient);
            Games   = new GameActions(GetHttpClient);
            Streams = new StreamActions(GetHttpClient);
            Users   = new UserActions(GetHttpClient);
            Videos  = new VideoActions(GetHttpClient);
        }
Esempio n. 2
0
 public ActionStream(StreamActions streamActions)
 {
     _streamActions = streamActions;
 }
 public TracingAsyncStreamReader(IAsyncStreamReader <T> reader, StreamActions streamActions)
 {
     _reader        = reader;
     _streamActions = streamActions;
 }