Interface IWrapsValidatorWithMessageSupport
An object which wraps a validator instance with the capability to show human-readable feedback messages for failde validation rules.
Namespace: CSF.Validation
Assembly: CSF.Validation.dll
Syntax
public interface IWrapsValidatorWithMessageSupport
Methods
| Improve this Doc View SourceGetValidatorWithMessageSupport(IValidator)
Wraps a non-generic validator with message-enriching behaviour.
Declaration
IValidator GetValidatorWithMessageSupport(IValidator validator)
Parameters
Type | Name | Description |
---|---|---|
IValidator | validator | The validator instance to wrap. |
Returns
Type | Description |
---|---|
IValidator | The validator, with added message support. |
GetValidatorWithMessageSupport<TValidated>(IValidator<TValidated>)
Wraps a generic validator with message-enriching behaviour.
Declaration
IValidator<TValidated> GetValidatorWithMessageSupport<TValidated>(IValidator<TValidated> validator)
Parameters
Type | Name | Description |
---|---|---|
IValidator<TValidated> | validator | The validator instance to wrap. |
Returns
Type | Description |
---|---|
IValidator<TValidated> | The validator, with added message support. |
Type Parameters
Name | Description |
---|---|
TValidated | The validated type. |