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); }
private void onSessionMessageReceived(object sender, MessageReceivedEventArgs e) { if (MessageReceived != null) { MessageReceived(this, e); } }
private void onMessageReceived() { if (MessageReceived != null) { MessageReceivedEventArgs e = new MessageReceivedEventArgs(currentMessage); MessageReceived(this, e); } }