Example #1
0
        public async Task ProcessTweetAsync(string tweetJsonString)
        {
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            //deserialize tweet.
            RawTweet requestingTweet = DeserializeTweet(tweetJsonString);

            ITweetContentHandler handler = handlerFactory.BuildHandlerPipeline();
            var requestNotification      = requestingTweet.CreateRequestNotification();

            await handler.HandleAsync(requestNotification, logger);
        }
Example #2
0
        public ITweetContentHandler SetNext(ITweetContentHandler handler)
        {
            nextHandler = handler;

            return(nextHandler);
        }