コード例 #1
0
ファイル: Startup.cs プロジェクト: tvetan/feather-widgets
 private static void Bootstrapper_Initialized(object sender, Data.ExecutedEventArgs e)
 {
     if (e.CommandName == "Bootstrapped")
     {
         ObjectFactory.Container.RegisterInstance <IControlDefinitionExtender>("FormsDefinitionsExtender", new FormsDefinitionsExtender(), new ContainerControlledLifetimeManager());
     }
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 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);
         }
     }
 }