Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public async ValueTask DisposeAsync()
 {
     await ScrumPokerHub.LeaveGameAsync()
     .ContinueWith(t => ScrumPokerHub.StopAsync());
 }