public int IndexOf(string name) { ProfileSettings s = (ProfileSettings)BaseGet(name); if (s == null) { return(-1); /* XXX */ } else { return(BaseIndexOf(s)); } }
void MergeValuesWithProfile(RuleInfo ruleInfo) { ProfileSettings profileSettings = null; if (ruleInfo._ruleSettings.ElementInformation.Properties["profile"].ValueOrigin != PropertyValueOrigin.Default) { profileSettings = _section.Profiles[ruleInfo._ruleSettings.Profile]; Debug.Assert(profileSettings != null, "profileSettings != null"); } if (profileSettings != null && ruleInfo._ruleSettings.ElementInformation.Properties["minInstances"].ValueOrigin == PropertyValueOrigin.Default) { ruleInfo._minInstances = profileSettings.MinInstances; } else { ruleInfo._minInstances = ruleInfo._ruleSettings.MinInstances; } if (profileSettings != null && ruleInfo._ruleSettings.ElementInformation.Properties["maxLimit"].ValueOrigin == PropertyValueOrigin.Default) { ruleInfo._maxLimit = profileSettings.MaxLimit; } else { ruleInfo._maxLimit = ruleInfo._ruleSettings.MaxLimit; } if (profileSettings != null && ruleInfo._ruleSettings.ElementInformation.Properties["minInterval"].ValueOrigin == PropertyValueOrigin.Default) { ruleInfo._minInterval = profileSettings.MinInterval; } else { ruleInfo._minInterval = ruleInfo._ruleSettings.MinInterval; } if (profileSettings != null && ruleInfo._ruleSettings.ElementInformation.Properties["custom"].ValueOrigin == PropertyValueOrigin.Default) { ruleInfo._customEvaluator = profileSettings.Custom; ruleInfo._customEvaluatorConfig = profileSettings; } else { ruleInfo._customEvaluator = ruleInfo._ruleSettings.Custom; ruleInfo._customEvaluatorConfig = ruleInfo._ruleSettings; } }
private void MergeValuesWithProfile(RuleInfo ruleInfo) { ProfileSettings settings = null; if (ruleInfo._ruleSettings.ElementInformation.Properties["profile"].ValueOrigin != PropertyValueOrigin.Default) { settings = this._section.Profiles[ruleInfo._ruleSettings.Profile]; } if ((settings != null) && (ruleInfo._ruleSettings.ElementInformation.Properties["minInstances"].ValueOrigin == PropertyValueOrigin.Default)) { ruleInfo._minInstances = settings.MinInstances; } else { ruleInfo._minInstances = ruleInfo._ruleSettings.MinInstances; } if ((settings != null) && (ruleInfo._ruleSettings.ElementInformation.Properties["maxLimit"].ValueOrigin == PropertyValueOrigin.Default)) { ruleInfo._maxLimit = settings.MaxLimit; } else { ruleInfo._maxLimit = ruleInfo._ruleSettings.MaxLimit; } if ((settings != null) && (ruleInfo._ruleSettings.ElementInformation.Properties["minInterval"].ValueOrigin == PropertyValueOrigin.Default)) { ruleInfo._minInterval = settings.MinInterval; } else { ruleInfo._minInterval = ruleInfo._ruleSettings.MinInterval; } if ((settings != null) && (ruleInfo._ruleSettings.ElementInformation.Properties["custom"].ValueOrigin == PropertyValueOrigin.Default)) { ruleInfo._customEvaluator = settings.Custom; ruleInfo._customEvaluatorConfig = settings; } else { ruleInfo._customEvaluator = ruleInfo._ruleSettings.Custom; ruleInfo._customEvaluatorConfig = ruleInfo._ruleSettings; } }
public void Insert (int index, ProfileSettings authorizationSettings) { BaseAdd (index, authorizationSettings); }
public void Add (ProfileSettings profilesSettings) { BaseAdd (profilesSettings); }
public void Insert(int index, ProfileSettings authorizationSettings) { }
public void Add(ProfileSettings profilesSettings) { }
public void Insert(int index, ProfileSettings authorizationSettings) { BaseAdd(index, authorizationSettings); }
public void Add(ProfileSettings profilesSettings) { BaseAdd(profilesSettings); }
// public methods public void Add(ProfileSettings profilesSettings) { BaseAdd(profilesSettings); // add to the end of the list and dont overwrite dups! }