ChildValidatorAdaptor<T, TProperty>
Assembly: ServiceStack.dll
View Source
Declaration
public class ChildValidatorAdaptor<T, TProperty> : NoopPropertyValidator, IPropertyValidator, IChildValidatorAdaptor
Properties
ValidatorType
View Source
Declaration
public Type ValidatorType { get; }
RuleSets
View Source
Declaration
public string[] RuleSets { get; set; }
Inherited Properties
Options
View Source
Declaration
public PropertyValidatorOptions Options { get; }
Methods
Validate(PropertyValidatorContext)
View Source
Declaration
public override IEnumerable<ValidationFailure> Validate(PropertyValidatorContext context)
Returns
System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.Results.ValidationFailure>
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
ValidateAsync(PropertyValidatorContext, CancellationToken)
View Source
Declaration
public override async Task<IEnumerable<ValidationFailure>> ValidateAsync(PropertyValidatorContext context, CancellationToken cancellation)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.Results.ValidationFailure>>
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
System.Threading.CancellationToken | cancellation |
GetValidator(PropertyValidatorContext)
View Source
Declaration
public virtual IValidator<TProperty> GetValidator(PropertyValidatorContext context)
Returns
ServiceStack.FluentValidation.IValidator<T>
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
CreateNewValidationContextForChildValidator(PropertyValidatorContext, IValidator<TProperty>)
View Source
Declaration
protected virtual IValidationContext CreateNewValidationContextForChildValidator(PropertyValidatorContext context, IValidator<TProperty> validator)
Returns
ServiceStack.FluentValidation.IValidationContext
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
ServiceStack.FluentValidation.IValidator<T> | validator |
CreateNewValidationContextForChildValidator(Object, PropertyValidatorContext)
View Source
Declaration
[Obsolete("This overload is not used and will be removed from FluentValidation 10.")]
protected IValidationContext CreateNewValidationContextForChildValidator(object instanceToValidate, PropertyValidatorContext context)
Returns
ServiceStack.FluentValidation.IValidationContext
Parameters
Type | Name |
---|---|
System.Object | instanceToValidate |
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
ShouldValidateAsynchronously(IValidationContext)
View Source
Declaration
public override bool ShouldValidateAsynchronously(IValidationContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.IValidationContext | context |
Inherited Methods
ShouldValidateAsynchronously(IValidationContext)
View Source
Declaration
public virtual bool ShouldValidateAsynchronously(IValidationContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.IValidationContext | context |
Validate(PropertyValidatorContext)
View Source
Declaration
public abstract IEnumerable<ValidationFailure> Validate(PropertyValidatorContext context)
Returns
System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.Results.ValidationFailure>
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
ValidateAsync(PropertyValidatorContext, CancellationToken)
View Source
Declaration
public virtual Task<IEnumerable<ValidationFailure>> ValidateAsync(PropertyValidatorContext context, CancellationToken cancellation)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.Results.ValidationFailure>>
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
System.Threading.CancellationToken | cancellation |