Example #1
0
        public Monitor(ILogger <Monitor> logger, MonitorSettings monitorSettings, RateLimitHandler rateLimitHandler)
        {
            this.logger          = logger;
            this.monitorSettings = monitorSettings;

            var apiKeys = monitorSettings.TwitterSettings;

            Auth.SetUserCredentials(apiKeys.ConsumerKey, apiKeys.ConsumerSecret, apiKeys.AccessToken, apiKeys.AccessTokenSecret);

            rateLimitHandler.Initialize();
        }