Skip to main content

IParameterValidatorFactory

Gets validators for method parameters.

Assembly: ServiceStack.dll​
View Source​
Declaration
public interface IParameterValidatorFactory

Methods​

GetValidator(ParameterInfo)​

Gets a validator for <code data-dev-comment-type="paramref" class="paramref">parameterInfo</code>.

View Source​
Declaration
IValidator GetValidator(ParameterInfo parameterInfo)
Returns​

ServiceStack.FluentValidation.IValidator: Created ServiceStack.FluentValidation.IValidator instance; null if a validator cannot be created.

Parameters​
TypeNameDescription
System.Reflection.ParameterInfoparameterInfoThe System.Reflection.ParameterInfo instance to get a validator for.

|