private void Programmer_ReplyTo(object sender, SassyMQ.Lib.RabbitMQ.PayloadEventArgs <DEMOPayload> e) { if (e.Payload.IsLexiconTerm(LexiconTermEnum.programmer_hello_world)) { MessageBox.Show("Got reply from the world: " + e.Payload.Content); } }
private static void World_ProgrammerHelloReceived(object sender, SassyMQ.Lib.RabbitMQ.PayloadEventArgs <DEMOPayload> e) { Console.WriteLine("RECEIVED Message From Programmer: {0}", e.Payload.Content); e.Payload.Content = "REPLY"; }