Coordinates the gathering and execution of validators.
Castle.Components.Validator..::IValidatorRegistry
Namespace: Castle.Components.Validator
Assembly: Castle.Components.Validator (in Castle.Components.Validator.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
public class ValidatorRunner |
Remarks
This class is not thread safe and should not be shared. It should only be
used in small scopes and discarded.
Examples
ValidatorRunner runner = new ValidatorRunner(new CachedValidationRegistry());
if (!runner.IsValid(customer))
{
// do something as the Customer instance is not valid
}