Skip to main content

IPropertyValidator

A custom property validator. This interface should not be implemented directly in your code as it is subject to change. Please inherit from ServiceStack.FluentValidation.Validators.PropertyValidator?text=PropertyValidator instead.

Assembly: ServiceStack.dll
View Source
Declaration
public interface IPropertyValidator

Properties

Options

Additional options for configuring the property validator.

View Source
Declaration
PropertyValidatorOptions Options { get; }

Methods

Validate(PropertyValidatorContext)

Performs validation

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

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

Parameters
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext

ValidateAsync(PropertyValidatorContext, CancellationToken)

Performs validation asynchronously.

View Source
Declaration
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)

Determines whether this validator should be run asynchronously or not.

View Source
Declaration
bool ShouldValidateAsynchronously(IValidationContext context)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.FluentValidation.IValidationContextcontext