예제 #1
0
        private async void ClientOnConnected(object sender, EventArgs eventArgs)
        {
            if (Client.AllServers.Any())
            {
                return;
            }
            var invite = await Client.GetInvite("0Y3uXYnj89S6tUL4");

            await Client.AcceptInvite(invite);
        }
예제 #2
0
 await View.Dispatcher.InvokeAsync(() => {
     View.DialogHostReplyForInvite.DialogClosing += (s, a) => {
         if (!Equals(a.Parameter, true))
             return;
         Client.AcceptInvite(from, to, firstMove);
     };