In Metalama, implement the BuildAspect(IAspectBuilder<T>) method and use builder
.Advice.AddInitializer(INamedType, string, InitializerKind, object?, object?).
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
[Obsolete("In Metalama, implement the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method and use <c>builder</c>.'Advice'.'IAdviceFactory.AddInitializer(INamedType, string, InitializerKind, object?, object?)'.", false)]
public sealed class OnInstanceConstructedAdvice : Advice
Constructors
Name | Description |
---|---|
OnInstanceConstructedAdvice() |