Esempio n. 1
0
 public ValidationResult(ValidationError error, OperatorPath path) : base(error)
 {
     this.Path = path;
 }
Esempio n. 2
0
 internal OperatorModelValidator CreateFor(OperatorPath path)
 {
     return(new OperatorModelValidator(this, path)); // 'new' makes it be inherently thread-safe, otherwise need to synchronize the access
 }
 internal OperatorModelValidator(ValidationContext validation, OperatorPath path)
 {
     this.Path       = path;
     this.Validation = validation;
 }
Esempio n. 4
0
 public ValidationResult For(OperatorPath path)
 {
     return(new ValidationResult(this, path));
 }