Skip to main content

OnFailureValidator<T>

Assembly: ServiceStack.dll
View Source
Declaration
public class OnFailureValidator<T> : NoopPropertyValidator, IPropertyValidator, IChildValidatorAdaptor

Properties

ValidatorType

View Source
Declaration
public Type ValidatorType { get; }

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
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext

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
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext
System.Threading.CancellationTokencancellation

ShouldValidateAsynchronously(IValidationContext)

View Source
Declaration
public override bool ShouldValidateAsynchronously(IValidationContext context)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.FluentValidation.IValidationContextcontext

Inherited Methods

ShouldValidateAsynchronously(IValidationContext)

View Source
Declaration
public virtual bool ShouldValidateAsynchronously(IValidationContext context)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.FluentValidation.IValidationContextcontext

Validate(PropertyValidatorContext)

View Source
Declaration
public abstract IEnumerable<ValidationFailure> Validate(PropertyValidatorContext context)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.Results.ValidationFailure>

Parameters
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext

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
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext
System.Threading.CancellationTokencancellation

Implements