private static void Bootstrapper_Initialized(object sender, Data.ExecutedEventArgs e) { if (e.CommandName == "Bootstrapped") { ObjectFactory.Container.RegisterInstance <IControlDefinitionExtender>("FormsDefinitionsExtender", new FormsDefinitionsExtender(), new ContainerControlledLifetimeManager()); } }
private static void Bootstrapper_Initialized(object sender, Data.ExecutedEventArgs e) { if (e.CommandName == "Bootstrapped") { ObjectFactory.Container.RegisterType <IToolboxFilter, FeatherEnabledToolboxFilter>(typeof(FeatherEnabledToolboxFilter).FullName); ObjectFactory.Container.RegisterType <IToolboxFilter, GridControlToolboxFilter>(typeof(GridControlToolboxFilter).FullName, new InjectionConstructor(new Func <PageTemplateFramework>(Startup.ExtractFramework))); Startup.AddWidgetValidating(); Startup.RegisterStringResources(); } }
private static void Bootstrapper_Initialized(object sender, Data.ExecutedEventArgs e) { using (new ElevatedConfigModeRegion()) { var librariesConfig = Config.Get <LibrariesConfig>(); var azureBlobStorageType = librariesConfig.BlobStorage.BlobStorageTypes.Values.Where(b => b.ProviderType == typeof(AzureBlobStorageProvider)).FirstOrDefault(); if (azureBlobStorageType == null) { azureBlobStorageType = CreateAzureBlobStorageProviderType(librariesConfig); ConfigManager.GetManager().SaveSection(librariesConfig); } } }