private static void PrintNotifingAboutNewMessage(object sender, SessionInfo.RecievedMessageEventArgs e) { IoService.Out.WriteLine("You have new message from {0}", e.Message.SenderId); }
private void ShowNotifingAboutNewMessage(object sender, SessionInfo.RecievedMessageEventArgs e) { Application.Current.Dispatcher.BeginInvoke( DispatcherPriority.Background, new Action(() => AddMessageWithDesignToHistory(e.Message))); }