예제 #1
0
        protected Task ExitGame()
        {
            if (string.IsNullOrWhiteSpace(GameId))
            {
                return(Task.CompletedTask);
            }

            Logger.LogDebug("Game Ended!");

            ScrumPokerHub.LeaveGameAsync()
            .ContinueWith(t => ScrumPokerHub.StopAsync());

            NavigationManager.NavigateTo($"/");

            return(Task.CompletedTask);
        }
예제 #2
0
 public async ValueTask DisposeAsync()
 {
     await ScrumPokerHub.LeaveGameAsync()
     .ContinueWith(t => ScrumPokerHub.StopAsync());
 }