Ejemplo n.º 1
0
        public QueueHub(IHttpClientProvider httpClientProvider, IIncommingTweetQueue incommingTweetQueue, IConfiguration configuration,
                        IRuntimeStatsService runtimeStatsService, IStreamService streamService, IStreamReaderHandler streamReaderHandler)
        {
            _httpClientProvider  = httpClientProvider;
            _incommingTweetQueue = incommingTweetQueue;
            _runtimeStatsService = runtimeStatsService;
            _streamService       = streamService;
            _streamReaderHandler = streamReaderHandler;

            _twitterConfiguration = new TwitterConfiguration()
            {
                BaseUrl         = configuration.GetValue <string>(Constants.TwitterBaseUrlName).ToString(),
                OAuthToken      = configuration.GetValue <string>(Constants.TwitterOAuthTokenName).ToString(),
                SampleStreamUrl = configuration.GetValue <string>(Constants.TwitterSampleStreamUrlName).ToString()
            };
        }
Ejemplo n.º 2
0
 public StatsHub(IProcessedIncommingQueue processedIncommingQueue, IRuntimeStatsService runtimeStatsService, IStatAggregation statAggregation)
 {
     _processedIncommingQueue = processedIncommingQueue;
     _runtimeStatsService     = runtimeStatsService;
     _statAggregation         = statAggregation;
 }
Ejemplo n.º 3
0
 public IndexModel(IRuntimeStatsService runtimeStatsService)
 {
     _runtimeStatsService = runtimeStatsService;
 }