Open sandboxFocus

Method BuildAspect

BuildAspect<T>(IAspectBuilder<T>, Action<IAspectBuilder<T>>?)

This method must be called from the BuildAspect(IAspectBuilder<T>) method of the aspect class. It adds the aspect to child declarations that match the IMulticastAttribute properties. If the aspect is applied to a potential concrete target declaration (see ConcreteTargets), it calls an optional delegate that should provide advice to this target.

Declaration
public void BuildAspect<T>(IAspectBuilder<T> builder, Action<IAspectBuilder<T>>? implementConcreteAspect = null) where T : class, IDeclaration
Parameters
Type Name Description
IAspectBuilder<T> builder

The IAspectBuilder<TAspectTarget>.

Action<IAspectBuilder<T>> implementConcreteAspect

An action called when the aspect is applied on a concrete target declaration (see ConcreteTargets).

Type Parameters
Name Description
T