Пример #1
0
 public CleanupItem(ConfigurationCleanupActions.CleanupAction action, ConfigurationCleanupActions.CleanupScope scope, StringEvaluation.StringEvalCondition condition, string message, string[] categories, bool report)
 {
     this.Action     = action;
     this.Condition  = condition;
     this.Message    = message;
     this.Scope      = scope;
     this.Report     = report;
     this.Categories = categories;
 }
Пример #2
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemCollection'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemCollection.GetActions(ConfigurationCleanupActions.CleanupAction)'
        public CleanupItem[] GetActions(ConfigurationCleanupActions.CleanupAction action)
        {
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemCollection.GetActions(ConfigurationCleanupActions.CleanupAction)'

            Collection <CleanupItem> items = new Collection <CleanupItem>();

            foreach (CleanupItem item in this)
            {
                if (item.Action == action)
                {
                    items.Add(item);
                }
            }

            return(items.ToArray());
        }
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemRemove'
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemRemove.CleanupItemRemove(ConfigurationCleanupActions.CleanupAction, ConfigurationCleanupActions.CleanupScope, StringEvaluation.StringEvalCondition, string[], string, string, bool)'
        public CleanupItemRemove(ConfigurationCleanupActions.CleanupAction action, ConfigurationCleanupActions.CleanupScope scope, StringEvaluation.StringEvalCondition condition, string[] identifiers, string valueCategory, string triggerValue, bool report) :
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemRemove.CleanupItemRemove(ConfigurationCleanupActions.CleanupAction, ConfigurationCleanupActions.CleanupScope, StringEvaluation.StringEvalCondition, string[], string, string, bool)'
            base(action, scope, condition, "Removed because value = " + triggerValue + " in column" + valueCategory, identifiers, report)
        {
        }
Пример #4
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemUpdate'
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemUpdate.CleanupItemUpdate(ConfigurationCleanupActions.CleanupAction, ConfigurationCleanupActions.CleanupScope, StringEvaluation.StringEvalCondition, string, string, string[], bool)'
        public CleanupItemUpdate(ConfigurationCleanupActions.CleanupAction action, ConfigurationCleanupActions.CleanupScope scope, StringEvaluation.StringEvalCondition condition, string originalValue, string updatedValue, string[] identifiers, bool report) :
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'CleanupItemUpdate.CleanupItemUpdate(ConfigurationCleanupActions.CleanupAction, ConfigurationCleanupActions.CleanupScope, StringEvaluation.StringEvalCondition, string, string, string[], bool)'
            base(action, scope, condition, "Updated " + originalValue + " -> " + updatedValue, identifiers, report)
        {
        }