private async void OnMessage(ChatMessge msg) { await Windows.ApplicationModel.Core.CoreApplication.MainView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { ChatVM.Messages.Add(msg); }); }
public void Broadcast(ChatMessge msg) { proxy.Invoke("Send", msg); }