Ejemplo n.º 1
0
 /// <summary>
 /// Copies the base properties of a rule object. Used by Clone() implementations.
 /// </summary>
 /// <param name="Target">The object to copy properties into.</param>
 internal void CopyBaseProperties(RuleBase Target)
 {
     Target.Label          = Label;
     Target.Description    = Description;
     Target.UserOrGroupSid = UserOrGroupSid;
     Target.Id             = Id;
     Target.Collection     = Collection;
     Target.Action         = Action;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a preconfigured rule failure
 /// </summary>
 /// <param name="Rule">The rule that failed</param>
 /// <param name="Error">The exception describing the failure</param>
 public RuleFailure(RuleBase Rule, Exception Error)
 {
     this.Rule  = Rule;
     this.Error = Error;
 }