Ejemplo n.º 1
0
        static RateLimit()
        {
            Initialize();

            _rateLimitAwaiter = TweetinviContainer.Resolve<IRateLimitAwaiter>();
            _rateLimitCacheManager = TweetinviContainer.Resolve<IRateLimitCacheManager>();
            _rateLimitCache = TweetinviContainer.Resolve<IRateLimitCache>();
        }
Ejemplo n.º 2
0
        static RateLimit()
        {
            Initialize();

            _rateLimitAwaiter      = TweetinviContainer.Resolve <IRateLimitAwaiter>();
            _rateLimitCacheManager = TweetinviContainer.Resolve <IRateLimitCacheManager>();
            _rateLimitCache        = TweetinviContainer.Resolve <IRateLimitCache>();
        }
Ejemplo n.º 3
0
        public RateLimitsClient(ITwitterClient client)
        {
            var executionContext = client.CreateTwitterExecutionContext();

            _client                = client;
            _helpRequester         = client.Raw.Help;
            _rateLimitCacheManager = executionContext.Container.Resolve <IRateLimitCacheManager>();
            _rateLimitAwaiter      = executionContext.Container.Resolve <IRateLimitAwaiter>();
        }
Ejemplo n.º 4
0
 public RateLimitsClient(
     ITwitterClient client,
     IRateLimitCacheManager rateLimitCacheManager,
     IRateLimitAwaiter rateLimitAwaiter)
 {
     _client = client;
     _rateLimitCacheManager = rateLimitCacheManager;
     _rateLimitAwaiter      = rateLimitAwaiter;
     _helpRequester         = client.Raw.Help;
 }
Ejemplo n.º 5
0
 public TwitterRequestHandler(
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitCacheManager rateLimitCacheManager,
     IRateLimitUpdaterFactory rateLimitUpdaterFactory,
     IWebRequestExecutor webRequestExecutor)
 {
     _rateLimitAwaiter        = rateLimitAwaiter;
     _rateLimitCacheManager   = rateLimitCacheManager;
     _rateLimitUpdaterFactory = rateLimitUpdaterFactory;
     _webRequestExecutor      = webRequestExecutor;
 }
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     ITwitterRequester twitterRequester,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory)
 {
     _tweetinviEvents = tweetinviEvents;
     _rateLimitAwaiter = rateLimitAwaiter;
     _rateLimitUpdater = rateLimitUpdater;
     _twitterRequester = twitterRequester;
     _credentialsAccessor = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory = twitterQueryFactory;
 }
Ejemplo n.º 7
0
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     ITwitterRequester twitterRequester,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory)
 {
     _tweetinviEvents           = tweetinviEvents;
     _rateLimitAwaiter          = rateLimitAwaiter;
     _rateLimitUpdater          = rateLimitUpdater;
     _twitterRequester          = twitterRequester;
     _credentialsAccessor       = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory       = twitterQueryFactory;
 }
Ejemplo n.º 8
0
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     IRateLimitCacheManager rateLimitCacheManager,
     IWebRequestExecutor webRequestExecutor,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory,
     IOAuthWebRequestGenerator oAuthWebRequestGenerator)
 {
     _tweetinviEvents           = tweetinviEvents;
     _rateLimitAwaiter          = rateLimitAwaiter;
     _rateLimitUpdater          = rateLimitUpdater;
     _rateLimitCacheManager     = rateLimitCacheManager;
     _webRequestExecutor        = webRequestExecutor;
     _credentialsAccessor       = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory       = twitterQueryFactory;
     _oAuthWebRequestGenerator  = oAuthWebRequestGenerator;
 }
Ejemplo n.º 9
0
 static void Initialize()
 {
     _helpController        = TweetinviContainer.Resolve <IHelpController>();
     _rateLimitCacheManager = TweetinviContainer.Resolve <IRateLimitCacheManager>();
     _rateLimitAwaiter      = TweetinviContainer.Resolve <IRateLimitAwaiter>();
 }
Ejemplo n.º 10
0
 static void Initialize()
 {
     _helpController = TweetinviContainer.Resolve<IHelpController>();
     _rateLimitCacheManager = TweetinviContainer.Resolve<IRateLimitCacheManager>();
     _rateLimitAwaiter = TweetinviContainer.Resolve<IRateLimitAwaiter>();
 }