public ThrottledRule(TimeSpan throttle, ValidationMode mode)
 {
     _throttle = throttle;
     Mode = mode;
 }
 public FieldValidationExpression MaxValue(IComparable bounds, StringToken token, ValidationMode mode)
 {
     return(register(new MaxValueFieldRule(bounds, token)
     {
         Mode = mode
     }));
 }
 public ThrottledAttribute(int throttleSeconds, ValidationMode mode)
 {
     _throttleSeconds = throttleSeconds;
     _mode = mode;
 }
 public FieldValidationExpression RangeLength(int min, int max, StringToken token, ValidationMode mode)
 {
     return(register(new RangeLengthFieldRule(min, max, token)
     {
         Mode = mode
     }));
 }
 public FieldValidationExpression MinimumLength(int length, StringToken token, ValidationMode mode)
 {
     return(register(new MinimumLengthRule(length, token)
     {
         Mode = mode
     }));
 }
 public FieldValidationExpression Email(ValidationMode mode)
 {
     return(register(new EmailFieldRule {
         Mode = mode
     }));
 }
 public FieldValidationExpression Required(ValidationMode mode)
 {
     return(register(new RequiredFieldRule {
         Mode = mode
     }));
 }
 public FieldValidationExpression GreaterOrEqualToZero(ValidationMode mode)
 {
     return(register(new GreaterOrEqualToZeroRule {
         Mode = mode
     }));
 }