ValidatorConfiguration
Configuration options for validators.
Assembly: ServiceStack.dll
View Source
Declaration
public class ValidatorConfiguration
Properties
CascadeMode
Default cascade mode
View Source
Declaration
public CascadeMode CascadeMode { get; set; }
PropertyChainSeparator
Default property chain separator
View Source
Declaration
public string PropertyChainSeparator { get; set; }
LanguageManager
Default language manager
View Source
Declaration
public ILanguageManager LanguageManager { get; set; }
ValidatorSelectors
Customizations of validator selector
View Source
Declaration
public ValidatorSelectorOptions ValidatorSelectors { get; }
MessageFormatterFactory
Specifies a factory for creating MessageFormatter instances.
View Source
Declaration
public Func<MessageFormatter> MessageFormatterFactory { get; set; }
PropertyNameResolver
Pluggable logic for resolving property names
View Source
Declaration
public Func<Type, MemberInfo, LambdaExpression, string> PropertyNameResolver { get; set; }
DisplayNameResolver
Pluggable logic for resolving display names
View Source
Declaration
public Func<Type, MemberInfo, LambdaExpression, string> DisplayNameResolver { get; set; }
DisableAccessorCache
Disables the expression accessor cache. Not recommended.
View Source
Declaration
public bool DisableAccessorCache { get; set; }
ErrorCodeResolver
Pluggable resolver for default error codes
View Source
Declaration
public Func<PropertyValidator, string> ErrorCodeResolver { get; set; }