MultiRuleSetValidatorSelector
Assembly: ServiceStack.dll
View Source
Declaration
public class MultiRuleSetValidatorSelector : IValidatorSelector
Methods
CanExecute(IValidationRule, String, IValidationContext)
Determines whether or not a rule should execute.
View Source
Declaration
public 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
|