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