Пример #1
0
 public RateLimitUpdater(
     IRateLimitCacheManager rateLimitCacheManager,
     ICredentialsAccessor credentialsAccessor)
 {
     _rateLimitCacheManager = rateLimitCacheManager;
     _credentialsAccessor   = credentialsAccessor;
 }
Пример #2
0
 public RateLimitUpdater(
     IRateLimitCacheManager rateLimitCacheManager,
     ICredentialsAccessor credentialsAccessor)
 {
     _rateLimitCacheManager = rateLimitCacheManager;
     _credentialsAccessor = credentialsAccessor;
 }
Пример #3
0
 public RateLimitAwaiter(
     IRateLimitCacheManager rateLimitCacheManager,
     ITaskDelayer taskDelayer)
 {
     _rateLimitCacheManager = rateLimitCacheManager;
     _taskDelayer           = taskDelayer;
 }
Пример #4
0
        static RateLimit()
        {
            Initialize();

            _rateLimitAwaiter = TweetinviContainer.Resolve<IRateLimitAwaiter>();
            _rateLimitCacheManager = TweetinviContainer.Resolve<IRateLimitCacheManager>();
            _rateLimitCache = TweetinviContainer.Resolve<IRateLimitCache>();
        }
Пример #5
0
        static RateLimit()
        {
            Initialize();

            _rateLimitAwaiter      = TweetinviContainer.Resolve <IRateLimitAwaiter>();
            _rateLimitCacheManager = TweetinviContainer.Resolve <IRateLimitCacheManager>();
            _rateLimitCache        = TweetinviContainer.Resolve <IRateLimitCache>();
        }
Пример #6
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>();
        }
Пример #7
0
 public RateLimitAwaiter(
     IRateLimitCacheManager rateLimitCacheManager,
     ITaskDelayer taskDelayer,
     IWeakEvent <EventHandler <QueryAwaitingEventArgs> > queryAwaitingForRateLimitWeakEvent)
 {
     _rateLimitCacheManager = rateLimitCacheManager;
     _taskDelayer           = taskDelayer;
     _queryAwaitingForRateLimitWeakEvent = queryAwaitingForRateLimitWeakEvent;
 }
Пример #8
0
 public RateLimitsClient(
     ITwitterClient client,
     IRateLimitCacheManager rateLimitCacheManager,
     IRateLimitAwaiter rateLimitAwaiter)
 {
     _client = client;
     _rateLimitCacheManager = rateLimitCacheManager;
     _rateLimitAwaiter      = rateLimitAwaiter;
     _helpRequester         = client.Raw.Help;
 }
Пример #9
0
 public TwitterRequestHandler(
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitCacheManager rateLimitCacheManager,
     IRateLimitUpdaterFactory rateLimitUpdaterFactory,
     IWebRequestExecutor webRequestExecutor)
 {
     _rateLimitAwaiter        = rateLimitAwaiter;
     _rateLimitCacheManager   = rateLimitCacheManager;
     _rateLimitUpdaterFactory = rateLimitUpdaterFactory;
     _webRequestExecutor      = webRequestExecutor;
 }
Пример #10
0
 public RateLimitAwaiter(
     ICredentialsAccessor credentialsAccessor,
     IRateLimitCacheManager rateLimitCacheManager,
     IThreadHelper threadHelper,
     IWeakEvent <EventHandler <QueryAwaitingEventArgs> > queryAwaitingForRateLimitWeakEvent)
 {
     _credentialsAccessor   = credentialsAccessor;
     _rateLimitCacheManager = rateLimitCacheManager;
     _threadHelper          = threadHelper;
     _queryAwaitingForRateLimitWeakEvent = queryAwaitingForRateLimitWeakEvent;
 }
Пример #11
0
 public RateLimitAwaiter(
     ICredentialsAccessor credentialsAccessor,
     IRateLimitCacheManager rateLimitCacheManager,
     IThreadHelper threadHelper,
     IWeakEvent<EventHandler<QueryAwaitingEventArgs>> queryAwaitingForRateLimitWeakEvent)
 {
     _credentialsAccessor = credentialsAccessor;
     _rateLimitCacheManager = rateLimitCacheManager;
     _threadHelper = threadHelper;
     _queryAwaitingForRateLimitWeakEvent = queryAwaitingForRateLimitWeakEvent;
 }
Пример #12
0
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     IRateLimitCacheManager rateLimitCacheManager,
     IWebRequestExecutor webRequestExecutor,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory)
 {
     _tweetinviEvents           = tweetinviEvents;
     _rateLimitAwaiter          = rateLimitAwaiter;
     _rateLimitUpdater          = rateLimitUpdater;
     _rateLimitCacheManager     = rateLimitCacheManager;
     _webRequestExecutor        = webRequestExecutor;
     _credentialsAccessor       = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory       = twitterQueryFactory;
 }
Пример #13
0
 public TwitterRequestHandler(
     ITweetinviEvents tweetinviEvents,
     IRateLimitAwaiter rateLimitAwaiter,
     IRateLimitUpdater rateLimitUpdater,
     IRateLimitCacheManager rateLimitCacheManager,
     ITwitterRequester twitterRequester,
     ICredentialsAccessor credentialsAccessor,
     ITweetinviSettingsAccessor tweetinviSettingsAccessor,
     ITwitterQueryFactory twitterQueryFactory)
 {
     _tweetinviEvents = tweetinviEvents;
     _rateLimitAwaiter = rateLimitAwaiter;
     _rateLimitUpdater = rateLimitUpdater;
     _rateLimitCacheManager = rateLimitCacheManager;
     _twitterRequester = twitterRequester;
     _credentialsAccessor = credentialsAccessor;
     _tweetinviSettingsAccessor = tweetinviSettingsAccessor;
     _twitterQueryFactory = twitterQueryFactory;
 }
Пример #14
0
 public IRateLimitUpdater Create(IRateLimitCacheManager rateLimitCacheManager)
 {
     return(new RateLimitUpdater(rateLimitCacheManager));
 }
Пример #15
0
 static void Initialize()
 {
     _helpController = TweetinviContainer.Resolve<IHelpController>();
     _rateLimitCacheManager = TweetinviContainer.Resolve<IRateLimitCacheManager>();
     _rateLimitAwaiter = TweetinviContainer.Resolve<IRateLimitAwaiter>();
 }
Пример #16
0
 public RateLimitUpdater(IRateLimitCacheManager rateLimitCacheManager)
 {
     _rateLimitCacheManager = rateLimitCacheManager;
 }
Пример #17
0
 static void Initialize()
 {
     _helpController        = TweetinviContainer.Resolve <IHelpController>();
     _rateLimitCacheManager = TweetinviContainer.Resolve <IRateLimitCacheManager>();
     _rateLimitAwaiter      = TweetinviContainer.Resolve <IRateLimitAwaiter>();
 }