Пример #1
0
 private void ListenForInput()
 {
     while (true)
     {
         var line = Console.ReadLine();
         var chit = new Chit(line);
         var chitDeliveredEventArgs = new ChitDeliveredEventArgs(chit);
         OnChitDelivered(chitDeliveredEventArgs);
     }
 }
Пример #2
0
 public void Send(Chit chit)
 {
     var bytes = Encoding.UTF8.GetBytes(chit.Value);
     _channel.BasicPublish("telegram", "", null, bytes);
 }
Пример #3
0
 public ChitDeliveredEventArgs(Chit chit)
 {
     Chit = chit;
 }