Exemple #1
0
        protected async override void OnInitialized()
        {
            if (_pictureCallageCount == 0)
            {
                _pictureCallageCount = await ConfigClient.GetPictureCallageCount();
            }

            OsirisEvents.IsBusy = true;
            Logger.LogError($"OsirisEvents.IsBusyAsync : {OsirisEvents.IsBusy}");
            await OsirisEvents.IsBusyChanged.InvokeAsync(OsirisEvents.IsBusy);

            await InitilizeRndomDogs();
            await InvokeAsync(() => { StateHasChanged(); });


            OsirisEvents.IsBusy = false;
            await OsirisEvents.IsBusyChanged.InvokeAsync(OsirisEvents.IsBusy);

            Logger.LogError($"OsirisEvents.IsBusyAsync : {OsirisEvents.IsBusy}");

            base.OnInitialized();
        }