Example #1
0
        private static org.apache.avro.test.Message CreateMessage()
        {
            var msg = new org.apache.avro.test.Message
            {
                to   = "wife",
                from = "husband",
                body = "I love you!"
            };

            return(msg);
        }
 private static org.apache.avro.test.Message CreateMessage()
 {
     var msg = new org.apache.avro.test.Message
                   {
                       to = "wife",
                       from = "husband",
                       body = "I love you!"
                   };
     return msg;
 }
Example #3
0
 public override void fireandforget(org.apache.avro.test.Message message)
 {
     allMessages.Signal();
 }
Example #4
0
 // in this simple example just return details of the message
 public override String send(org.apache.avro.test.Message message)
 {
     return("Sent message to [" + message.to +
            "] from [" + message.from + "] with body [" +
            message.body + "]");
 }