Exemple #1
0
        private static async Task DisconnectSignalRInTime(CancellationToken cancellationToken)
        {
            await Task.Delay(15000);

            if (shouldDisconnect && !cancellationToken.IsCancellationRequested)
            {
                await signalR.Disconnect();
            }
        }
 async void Logout_ClickedAsync(object sender, EventArgs e)
 {
     await signalR.Disconnect();
 }