Esempio n. 1
0
        public int IndexOf(string name)
        {
            ProfileSettings s = (ProfileSettings)BaseGet(name);

            if (s == null)
            {
                return(-1);                /* XXX */
            }
            else
            {
                return(BaseIndexOf(s));
            }
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
		public void Insert (int index, ProfileSettings authorizationSettings)
		{
			BaseAdd (index, authorizationSettings);
		}
Esempio n. 5
0
		public void Add (ProfileSettings profilesSettings)
		{
			BaseAdd (profilesSettings);
		}
 public void Insert(int index, ProfileSettings authorizationSettings)
 {
 }
 public void Add(ProfileSettings profilesSettings)
 {
 }
Esempio n. 8
0
 public void Insert(int index, ProfileSettings authorizationSettings)
 {
     BaseAdd(index, authorizationSettings);
 }
Esempio n. 9
0
 public void Add(ProfileSettings profilesSettings)
 {
     BaseAdd(profilesSettings);
 }
Esempio n. 10
0
 // public methods
 public void Add(ProfileSettings profilesSettings)
 {
     BaseAdd(profilesSettings); // add to the end of the list and dont overwrite dups!
 }
 // public methods
 public void Add(ProfileSettings profilesSettings) {
     BaseAdd(profilesSettings); // add to the end of the list and dont overwrite dups!
 }
 public void Insert(int index, ProfileSettings authorizationSettings)
 {
 }
 public void Add(ProfileSettings profilesSettings)
 {
 }