Exemplo n.º 1
0
 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();
            }
        }
Exemplo n.º 3
0
        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();
                }
            }
        }
Exemplo n.º 5
0
        protected override async Task OnInitializedAsync()
        {
            try
            {
                VerifyParameters();
                await SetViewModelAsync();

                if (ViewModel == null)
                {
                    NavigationManager.NavigateTo("/NotFound");
                }
                ComponentStateService.SetContent();
            }
            catch
            {
                ComponentStateService.SetError();
            }
        }