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 void OnParametersSet() { ComponentStateService.SetState(ParentComponentState); if (!ParentComponentState.HasError()) { try { VerifyInternalParameters(); } catch { ComponentStateService.SetError(); StateHasChanged(); } } }
protected override async Task OnInitializedAsync() { try { VerifyParameters(); await SetViewModelAsync(); if (ViewModel == null) { NavigationManager.NavigateTo("/NotFound"); } ComponentStateService.SetContent(); } catch { ComponentStateService.SetError(); } }