public IncommingTweets(IHttpClientFactory httpClientFactory, IProcessedIncommingQueue processedIncommingQueue, IIncommingTweetQueue incommingTweetQueue, ITweetScrapingService tweetProcessingService, IIncommingTweetQueuePoison incommingTweetQueuePoison, ITweetAggregationService tweetAggregationService) { var binDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location).TrimEnd(@"\bin".ToArray()); var emojiFilePath = Path.GetFullPath(Path.Combine(binDirectory, Constants.EmojiCodesFileName)); _knownEmojis = File.ReadAllText(emojiFilePath); _httpClientFactory = httpClientFactory; _processedIncommingQueue = processedIncommingQueue; _incommingTweetQueue = incommingTweetQueue; _incommingTweetQueuePoison = incommingTweetQueuePoison; _tweetProcessingService = tweetProcessingService; _tweetAggregationService = tweetAggregationService; }
public StatsHub(IProcessedIncommingQueue processedIncommingQueue, IRuntimeStatsService runtimeStatsService, IStatAggregation statAggregation) { _processedIncommingQueue = processedIncommingQueue; _runtimeStatsService = runtimeStatsService; _statAggregation = statAggregation; }
public TweetAggregationService(IProcessedIncommingQueue processedIncommingQueue, ITweetScrapingService tweetScrapingService) { _processedIncommingQueue = processedIncommingQueue; _tweetScrapingService = tweetScrapingService; }