示例#1
0
        protected override async Task OnInitializedAsync()
        {
            AccessCode = await SessionStorage.GetAsync <string>(LocalStorageKey.AccessCode);

            Conference = await ConferenceAdminService.Get(Slug, AccessCode);

            IsPublished = Conference.IsPublished;

            Message = await SessionStorage.GetAsync <string>(LocalStorageKey.Notification);

            await SessionStorage.DeleteAsync(LocalStorageKey.Notification);

            PublishButtonText = GetPublishButtonText(Conference.IsPublished);

            HasError = false;
        }