示例#1
0
        private PluggableDivergenceHandlerConfigImpl()
        {
            IConfigProvider configProvider = ConfigProvider.CreateADProvider(new PluggableDivergenceHandlerConfigSchema(), null);

            this.provider = configProvider;
            configProvider.Initialize();
        }
        private TenantRelocationConfigImpl()
        {
            IConfigProvider configProvider = ConfigProvider.CreateADProvider(new TenantRelocationConfigSchema(), null);

            configProvider.Initialize();
            this.provider = configProvider;
        }
        private ProvisioningTasksConfigImpl()
        {
            IConfigProvider configProvider = ConfigProvider.CreateADProvider(new ProvisioningTasksConfigSchema(), null);

            this.provider = configProvider;
            configProvider.Initialize();
        }
        private ComplianceConfigImpl()
        {
            IConfigProvider configProvider = ConfigProvider.CreateADProvider(new ComplianceConfigSchema(), null);

            this.provider = configProvider;
            configProvider.Initialize();
        }
        private DirectoryTasksConfigImpl()
        {
            IConfigProvider configProvider = ConfigProvider.CreateADProvider(new DirectoryTasksConfigSchema(), null);

            configProvider.Initialize();
            this.provider = configProvider;
        }
        public static T GetConfig <T>(string settingName)
        {
            T config;

            using (IConfigProvider configProvider = ConfigProvider.CreateADProvider(new SlimTenantConfigSchema(), null))
            {
                configProvider.Initialize();
                config = configProvider.GetConfig <T>(settingName);
            }
            return(config);
        }
示例#7
0
 // Token: 0x060008DC RID: 2268 RVA: 0x00027884 File Offset: 0x00025A84
 private bool Initialize()
 {
     if (this.provider == null)
     {
         if (Globals.ProcessInstanceType == InstanceType.NotInitialized)
         {
             return(false);
         }
         lock (this.lockObj)
         {
             if (this.provider == null)
             {
                 this.provider = ConfigProvider.CreateADProvider(new ConfigurationADImpl.ADCacheConfigurationSchema(), null);
                 this.provider.Initialize();
             }
         }
     }
     return(true);
 }