Class ImportedValidatorBuilderManifestFactory
A factory service which gets an implementation of ValidatorBuilderContext based upon a type that implements IBuildsValidator<TValidated>.
Inheritance
System.Object
ImportedValidatorBuilderManifestFactory
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.ValidatorBuilding
Assembly: CSF.Validation.dll
Syntax
public class ImportedValidatorBuilderManifestFactory : IGetsValidatorBuilderContextFromBuilder
Constructors
| Improve this Doc View SourceImportedValidatorBuilderManifestFactory(IServiceProvider)
Initialises a new instance of ImportedValidatorBuilderManifestFactory.
Declaration
public ImportedValidatorBuilderManifestFactory(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | A service provider. |
Methods
| Improve this Doc View SourceGetValidatorBuilderContext(Type, ValidatorBuilderContext)
Gets an object which provides manifest rules from a specified validator-builder type.
Declaration
public ValidatorBuilderContext GetValidatorBuilderContext(Type definitionType, ValidatorBuilderContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Type | definitionType | A type which must implement IBuildsValidator<TValidated>. |
ValidatorBuilderContext | context | Contextual information about how a validator should be built. |
Returns
Type | Description |
---|---|
ValidatorBuilderContext | An object which provides a collection of ManifestRule instances. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If the |