private void ListenForInput() { while (true) { var line = Console.ReadLine(); var chit = new Chit(line); var chitDeliveredEventArgs = new ChitDeliveredEventArgs(chit); OnChitDelivered(chitDeliveredEventArgs); } }
public void Send(Chit chit) { var bytes = Encoding.UTF8.GetBytes(chit.Value); _channel.BasicPublish("telegram", "", null, bytes); }
public ChitDeliveredEventArgs(Chit chit) { Chit = chit; }