Class ManifestFromBuilderProvider
A service which gets a ValidationManifest from an instance of IBuildsValidator<TValidated>.
Inheritance
System.Object
ManifestFromBuilderProvider
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 ManifestFromBuilderProvider : IGetsManifestFromBuilder
Constructors
| Improve this Doc View SourceManifestFromBuilderProvider(IGetsValidatorBuilder)
Initialises a new instance of ManifestFromBuilderProvider.
Declaration
public ManifestFromBuilderProvider(IGetsValidatorBuilder builderFactory)
Parameters
Type | Name | Description |
---|---|---|
IGetsValidatorBuilder | builderFactory | A factory for getting instances of ValidatorBuilder<TValidated>. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If the |
Methods
| Improve this Doc View SourceGetManifest<TValidated>(IBuildsValidator<TValidated>)
Gets a validation manifest from the validator-builder.
Declaration
public ValidationManifest GetManifest<TValidated>(IBuildsValidator<TValidated> builder)
Parameters
Type | Name | Description |
---|---|---|
IBuildsValidator<TValidated> | builder | The validation builder instance. |
Returns
Type | Description |
---|---|
ValidationManifest | A validation manifest, created using the validation-builder. |
Type Parameters
Name | Description |
---|---|
TValidated | The validated object type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |