protected override void OnInitialized() { try { VerifyParameters(); ComponentStateService.SetContent(); } catch { ComponentStateService.SetError(); } }
protected override async Task OnInitializedAsync() { try { await SetTeamsAsync(); ComponentStateService.SetContent(); } catch (Exception e) { e = e; ComponentStateService.SetError(); } }
protected override async Task OnInitializedAsync() { try { VerifyParameters(); await SetPlayersAsync(); ComponentStateService.SetContent(); } catch { ComponentStateService.SetError(); } }
protected override async Task OnInitializedAsync() { try { VerifyParameters(); await SetViewModelAsync(); if (ViewModel == null) { NavigationManager.NavigateTo("/NotFound"); } ComponentStateService.SetContent(); } catch { ComponentStateService.SetError(); } }