Skip to main content

DefaultValidatorSelector

Default validator selector that will execute all rules that do not belong to a RuleSet.

Assembly: ServiceStack.dll
View Source
Declaration
public class DefaultValidatorSelector : 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
TypeNameDescription
ServiceStack.FluentValidation.IValidationRuleruleThe rule

| | System.String | propertyPath | Property path (eg Customer.Address.Line1)

| | ServiceStack.FluentValidation.IValidationContext | context | Contextual information

|

Implements