Example #1
0
 public void Run()
 {
     _repo.NewTweet      += ShowTweet;
     _repo.NewFavourite  += ShowFavourite;
     _repo.NewFollower   += ShowFollower;
     _repo.NewMessage    += ShowMessage;
     _repo.Heartbeat     += (s, e) => ColorConsole.Write(ConsoleColor.DarkMagenta, Clean(e.Message));
     _repo.StreamStarted += (s, e) => ColorConsole.WriteLine(ConsoleColor.DarkMagenta, "Twitter feed GO!");
     _repo.StreamStopped += (s, e) => ColorConsole.WriteLine(ConsoleColor.DarkMagenta, "Twitter feed halted:" + Clean(e.DisconnectMessage.ToString()));
     _repo.Start();
 }