Пример #1
0
 private async void OnMessage(ChatMessge msg)
 {
     await Windows.ApplicationModel.Core.CoreApplication.MainView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         ChatVM.Messages.Add(msg);
     });
 }
Пример #2
0
 public void Broadcast(ChatMessge msg)
 {
     proxy.Invoke("Send", msg);
 }