protected override async Task OnInitializedAsync() { bookService = (IBookService)ScopedServices.GetService(typeof(IBookService)); profileService = (IProfileService)ScopedServices.GetService(typeof(IProfileService)); profiles = await profileService.GetAllProfilesAsync(); }
protected async override Task OnInitializedAsync() { // return base.OnInitializedAsync(); _newsService = (NewsService)ScopedServices.GetService(typeof(NewsService)); Items = await _newsService.GetAllVisibleNews().ToListAsync(); }
protected async override Task OnInitializedAsync() { // return base.OnInitializedAsync(); _galleryService = (GalleryService)ScopedServices.GetService(typeof(GalleryService)); Items = await _galleryService.GetGalleries(true).ToListAsync(); }
protected override void OnInitialized() { base.OnInitialized(); // setup the repo containing the mappings _repo = ScopedServices.GetService(typeof(FormGeneratorComponentsRepository)) as FormGeneratorComponentsRepository; }
protected override async Task OnInitializedAsync() { // return base.OnInitializedAsync(); _service = (AnswersService)ScopedServices.GetService(typeof(AnswersService)); Items = await _service.GetAllAsync(); }
protected async override Task OnInitializedAsync() { // return base.OnInitializedAsync(); _service = (QuestionsService)ScopedServices.GetService(typeof(QuestionsService)); Items = await _service.GetAllWithObjectsAsync(); }
protected async override Task OnInitializedAsync() { // return base.OnInitializedAsync(); _questionsService = (QuestionsService)ScopedServices.GetService(typeof(QuestionsService)); // ModalIsOpen = false; }
protected override void OnInitialized() { ViewModel = (T)ScopedServices.GetService(typeof(T)); _renderObservable = ViewModel.Changed.Select(cev => Unit.Default); _disposeObservable = _renderObservable.Subscribe(_ => InvokeAsync(StateHasChanged) ); base.OnInitialized(); }
protected override void OnInitialized() { base.OnInitialized(); try { PreRenderFlag = (IPreRenderFlag)ScopedServices.GetService(typeof(IPreRenderFlag)); } catch { } }
private void SetupFramework() { if (FormGeneratorOptions.FieldCssClassProvider != null) { var provider = FormGeneratorOptions.FieldCssClassProvider as VxFormCssClassProviderBase; // Set the options in the custom FieldCssClassProvider provider.FormLayoutOptions = FormLayoutOptions; CascadedEditContext.SetFieldCssClassProvider(provider); } if (FormLayoutOptions == null) { FormLayoutOptions = (VxFormLayoutOptions)ScopedServices.GetService(typeof(Layout.VxFormLayoutOptions)); } }
protected override void OnInitialized() { _repo = ScopedServices.GetService(typeof(FormGeneratorComponentsRepository)) as FormGeneratorComponentsRepository; }