public void CopyTo(RuleProviderBase[] array, int index) { lock (lockObject) { base.CopyTo(array, index); } }
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; }