public RateLimitUpdater( IRateLimitCacheManager rateLimitCacheManager, ICredentialsAccessor credentialsAccessor) { _rateLimitCacheManager = rateLimitCacheManager; _credentialsAccessor = credentialsAccessor; }
public RateLimitAwaiter( IRateLimitCacheManager rateLimitCacheManager, ITaskDelayer taskDelayer) { _rateLimitCacheManager = rateLimitCacheManager; _taskDelayer = taskDelayer; }
static RateLimit() { Initialize(); _rateLimitAwaiter = TweetinviContainer.Resolve<IRateLimitAwaiter>(); _rateLimitCacheManager = TweetinviContainer.Resolve<IRateLimitCacheManager>(); _rateLimitCache = TweetinviContainer.Resolve<IRateLimitCache>(); }
static RateLimit() { Initialize(); _rateLimitAwaiter = TweetinviContainer.Resolve <IRateLimitAwaiter>(); _rateLimitCacheManager = TweetinviContainer.Resolve <IRateLimitCacheManager>(); _rateLimitCache = TweetinviContainer.Resolve <IRateLimitCache>(); }
public RateLimitsClient(ITwitterClient client) { var executionContext = client.CreateTwitterExecutionContext(); _client = client; _helpRequester = client.Raw.Help; _rateLimitCacheManager = executionContext.Container.Resolve <IRateLimitCacheManager>(); _rateLimitAwaiter = executionContext.Container.Resolve <IRateLimitAwaiter>(); }
public RateLimitAwaiter( IRateLimitCacheManager rateLimitCacheManager, ITaskDelayer taskDelayer, IWeakEvent <EventHandler <QueryAwaitingEventArgs> > queryAwaitingForRateLimitWeakEvent) { _rateLimitCacheManager = rateLimitCacheManager; _taskDelayer = taskDelayer; _queryAwaitingForRateLimitWeakEvent = queryAwaitingForRateLimitWeakEvent; }
public RateLimitsClient( ITwitterClient client, IRateLimitCacheManager rateLimitCacheManager, IRateLimitAwaiter rateLimitAwaiter) { _client = client; _rateLimitCacheManager = rateLimitCacheManager; _rateLimitAwaiter = rateLimitAwaiter; _helpRequester = client.Raw.Help; }
public TwitterRequestHandler( IRateLimitAwaiter rateLimitAwaiter, IRateLimitCacheManager rateLimitCacheManager, IRateLimitUpdaterFactory rateLimitUpdaterFactory, IWebRequestExecutor webRequestExecutor) { _rateLimitAwaiter = rateLimitAwaiter; _rateLimitCacheManager = rateLimitCacheManager; _rateLimitUpdaterFactory = rateLimitUpdaterFactory; _webRequestExecutor = webRequestExecutor; }
public RateLimitAwaiter( ICredentialsAccessor credentialsAccessor, IRateLimitCacheManager rateLimitCacheManager, IThreadHelper threadHelper, IWeakEvent <EventHandler <QueryAwaitingEventArgs> > queryAwaitingForRateLimitWeakEvent) { _credentialsAccessor = credentialsAccessor; _rateLimitCacheManager = rateLimitCacheManager; _threadHelper = threadHelper; _queryAwaitingForRateLimitWeakEvent = queryAwaitingForRateLimitWeakEvent; }
public RateLimitAwaiter( ICredentialsAccessor credentialsAccessor, IRateLimitCacheManager rateLimitCacheManager, IThreadHelper threadHelper, IWeakEvent<EventHandler<QueryAwaitingEventArgs>> queryAwaitingForRateLimitWeakEvent) { _credentialsAccessor = credentialsAccessor; _rateLimitCacheManager = rateLimitCacheManager; _threadHelper = threadHelper; _queryAwaitingForRateLimitWeakEvent = queryAwaitingForRateLimitWeakEvent; }
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; }
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; }
public IRateLimitUpdater Create(IRateLimitCacheManager rateLimitCacheManager) { return(new RateLimitUpdater(rateLimitCacheManager)); }
static void Initialize() { _helpController = TweetinviContainer.Resolve<IHelpController>(); _rateLimitCacheManager = TweetinviContainer.Resolve<IRateLimitCacheManager>(); _rateLimitAwaiter = TweetinviContainer.Resolve<IRateLimitAwaiter>(); }
public RateLimitUpdater(IRateLimitCacheManager rateLimitCacheManager) { _rateLimitCacheManager = rateLimitCacheManager; }
static void Initialize() { _helpController = TweetinviContainer.Resolve <IHelpController>(); _rateLimitCacheManager = TweetinviContainer.Resolve <IRateLimitCacheManager>(); _rateLimitAwaiter = TweetinviContainer.Resolve <IRateLimitAwaiter>(); }