Example #1
0
 private static void OnMessageReceived(object sender, MessageReceivedEventArgs e)
 {
     Console.WriteLine(e.Message.From);
     Console.WriteLine(string.Join(", ", e.Message.Recipients));
     Console.WriteLine();
     Console.WriteLine(e.Message.Body);
 }
Example #2
0
 private void onSessionMessageReceived(object sender, MessageReceivedEventArgs e)
 {
     if (MessageReceived != null) {
         MessageReceived(this, e);
     }
 }
Example #3
0
 private void onMessageReceived()
 {
     if (MessageReceived != null) {
         MessageReceivedEventArgs e = new MessageReceivedEventArgs(currentMessage);
         MessageReceived(this, e);
     }
 }