Class ValidatorFromManifestFactory
A factory service which gets a validator from a validation manifest.
Inheritance
System.Object
ValidatorFromManifestFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.Manifest
Assembly: CSF.Validation.dll
Syntax
public class ValidatorFromManifestFactory : IGetsValidatorFromManifest
Constructors
| Improve this Doc View SourceValidatorFromManifestFactory(IServiceProvider)
Initialises a new instance of ValidatorFromManifestFactory.
Declaration
public ValidatorFromManifestFactory(IServiceProvider resolver)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | resolver | A DI resolver. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Methods
| Improve this Doc View SourceGetValidator(ValidationManifest)
Gets a validator from a validation manifest.
Declaration
public IValidator GetValidator(ValidationManifest manifest)
Parameters
Type | Name | Description |
---|---|---|
ValidationManifest | manifest | The validation manifest. |
Returns
Type | Description |
---|---|
IValidator | A validator. |