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); }
public ITweetContentHandler SetNext(ITweetContentHandler handler) { nextHandler = handler; return(nextHandler); }