예제 #1
0
 public RuleRuntimeErrorEvent(FlowErrorTrace parent, Exception linkedException, ValidationRule rule, IComparable object1, IComparable object2) :
     base(parent, "role runtime error event: " + linkedException, rule)
 {
     this.object1         = object1;
     this.object2         = object2;
     this.linkedException = linkedException;
 }
예제 #2
0
 public UnableToBindEvent(FlowErrorTrace parent, Exception linkedException, ValidationRule rule, PropertySelection selection, int argument) :
     base(parent, "unable to bind object " + selection, rule)
 {
     this.selection       = selection;
     this.argument        = argument;
     this.linkedException = linkedException;
 }
예제 #3
0
        public static ValidationResult Validate(ValidationData data)
        {
            ObjectBinder      binder     = CreateObjectBinder(data);
            ValidationRequest request    = new ValidationRequest(binder);
            FlowErrorTrace    errorTrace = data.flow.Validate(request);
            ValidationResult  result     = new ValidationResult(errorTrace);

            return(result);
        }
예제 #4
0
 internal RuleValidationEvent(FlowErrorTrace parent, string message, ValidationRule rule)
     : base(parent, message)
 {
     this.rule = rule;
 }
예제 #5
0
 internal BaseValidationEvent(FlowErrorTrace parent, string message)
 {
     this.message = message;
     this.Parent  = parent;
 }
예제 #6
0
 public UnsuccessfulFlowCompletionEvent(FlowErrorTrace parent, ValidationFlow flow) :
     base(parent, "Unsuccessful flow validation")
 {
     this.flow = flow;
 }
예제 #7
0
 public UnsuccessfulRuleCompletionEvent(FlowErrorTrace parent, ValidationRule rule, IComparable object1, IComparable object2) :
     base(parent, "Unsuccessful role validation", rule)
 {
     this.object1 = object1;
     this.object2 = object2;
 }