IValidatorSelector
Determines whether or not a rule should execute.
Assembly: ServiceStack.dll
View Source
Declaration
public interface IValidatorSelector
Methods
CanExecute(IValidationRule, String, IValidationContext)
Determines whether or not a rule should execute.
View Source
Declaration
bool CanExecute(IValidationRule rule, string propertyPath, IValidationContext context)
Returns
System.Boolean
: Whether or not the validator can execute.
Parameters
Type | Name | Description |
---|---|---|
ServiceStack.FluentValidation.IValidationRule | rule | The rule |
|
| System.String
| propertyPath | Property path (eg Customer.Address.Line1)
| | ServiceStack.FluentValidation.IValidationContext | context | Contextual information
|