예제 #1
0
 private void HandleMessage(BasicDeliverEventArgs result)
 {
     var data = Encoding.UTF8.GetString(result.Body);
     var telegram = new Telegram(data);
     var telegramEventArgs = new TelegramReceivedEventArgs(telegram);
     OnTelegramReceived(telegramEventArgs);
 }
예제 #2
0
파일: Postie.cs 프로젝트: bnathyuw/Telegram
 public void Deliver(Telegram telegram)
 {
     Console.WriteLine(telegram.ToString());
 }