IValidatorReceiverSelector<TTarget> Interface
An interface that allows aspects and fabrics to register validators for the initial or final compilation version.
Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IValidatorReceiverSelector<out TTarget>
where TTarget : class, IDeclaration
Type Parameters
Name | Description |
---|---|
TTarget |
Methods
Name | Description |
---|---|
With<TMember>(Func<TTarget, TMember>) | |
With<TMember>(Func<TTarget, IEnumerable<TMember>>) | Selects members of the target declaration of the current aspect or fabric with the purpose of adding validators to them using e.g. Validate(ValidatorDelegate<DeclarationValidationContext>) or ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) . |