コード例 #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
ファイル: RateLimitAwaiter.cs プロジェクト: rudiv/tweetinvi
 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
ファイル: RateLimit.cs プロジェクト: SowaLabs/TweetinviNew
 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>();
 }