Beispiel #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();
            }
        }
Beispiel #3
0
        protected override async Task OnInitializedAsync()
        {
            try
            {
                VerifyParameters();
                await SetPlayersAsync();

                ComponentStateService.SetContent();
            }
            catch
            {
                ComponentStateService.SetError();
            }
        }
Beispiel #4
0
        protected override async Task OnInitializedAsync()
        {
            try
            {
                VerifyParameters();
                await SetViewModelAsync();

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