In Metalama, you should use a programmatic approach. Use a foreach
loop in the BuildAspect(IAspectBuilder<T>) method, iterate the code model exposed on builder
.Target, and add advice using methods of builder
.Advice.
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, you should use a programmatic approach. Use a <c>foreach</c> loop in the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method, iterate the code model exposed on <c>builder</c>.'IAspectBuilder<TAspectTarget>.Target', and add advice using methods of <c>builder</c>.'IAspectBuilder.Advice'.", false)]
public sealed class MulticastPointcut : Pointcut
Constructors
Name | Description |
---|---|
MulticastPointcut() |
Properties
Name | Description |
---|---|
Attributes | |
MemberName | |
Targets |