IAspectBuilder<TAspectTarget> Interface
An object used by the BuildAspect(IAspectBuilder<T>) method of the aspect to provide advice, child aspects and validators, or report diagnostics. This is a strongly-typed variant of the IAspectBuilder interface.
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public interface IAspectBuilder<out TAspectTarget> : IAspectBuilder, IAdviser<TAspectTarget> where TAspectTarget : class, IDeclaration
Type Parameters
Name | Description |
---|---|
TAspectTarget |
Properties
Name | Description |
---|---|
Outbound | Gets an object that allows to add child advice (even to code added by aspects executed after the current one) and to validate code and code references. |
Target | Gets the declaration to which the aspect was added. |
Methods
Name | Description |
---|---|
VerifyEligibility(IEligibilityRule<TAspectTarget>) | Verifies that the target of the aspect matches an eligibility rule. If not, reports an eligibility error (unless the aspect can be used by inheritance) and skips the aspect. |
WithTarget<T>(T) | |
With<T>(T) |