コード例 #1
0
        protected override async Task OnParametersSetAsync()
        {
            try
            {
                if (Post is null)
                {
                    return;
                }

                if (Loaded)
                {
                    return;
                }
                if (OriginalPostImages?.Count < 1)
                {
                    await GetPostImagesAsync();

                    Loaded = true;
                }
            }
            catch (Exception e)
            {
                await OnLoadingError.InvokeAsync(e);
            }
        }
コード例 #2
0
 protected override async Task OnInitializedAsync()
 {
     try
     {
         CategoriesList = await CategoriesLogic.GetCategoriesAsync();
     }
     catch (Exception e)
     {
         await OnLoadingError.InvokeAsync(e);
     }
 }
コード例 #3
0
        protected override async Task OnParametersSetAsync()
        {
            if (Post is null)
            {
                return;
            }
            if (Loaded)
            {
                return;
            }
            try
            {
                await GetPostCategoriesAsync();

                Loaded = true;
            }

            catch (Exception e)
            {
                await OnLoadingError.InvokeAsync(e);
            }
        }