Inheritance: System.Configuration.Provider.ProviderBase
コード例 #1
0
        public void CopyTo(RuleProviderBase[] array, int index)
        {
            lock (lockObject)
            {

                base.CopyTo(array, index);
            }
        }
コード例 #2
0
        public static void Initialize()
        {
            const string fallbackProviderSetting = "EPiCode.Relations.Core.RelationProviders.DynamicDataStoreProvider.DDSRuleProvider";
            string       defaultProviderSetting  = Settings.GetSettingValue("DefaultRuleProviderString");

            if (string.IsNullOrEmpty(defaultProviderSetting))
            {
                defaultProviderSetting = fallbackProviderSetting;
            }

            defaultProvider = GetRuleProvider(defaultProviderSetting) as RuleProviderBase ??
                              GetRuleProvider(fallbackProviderSetting) as RuleProviderBase;
        }