private async void ClientOnConnected(object sender, EventArgs eventArgs) { if (Client.AllServers.Any()) { return; } var invite = await Client.GetInvite("0Y3uXYnj89S6tUL4"); await Client.AcceptInvite(invite); }
await View.Dispatcher.InvokeAsync(() => { View.DialogHostReplyForInvite.DialogClosing += (s, a) => { if (!Equals(a.Parameter, true)) return; Client.AcceptInvite(from, to, firstMove); };