Open sandboxFocus

Interface IInstanceScopedAspect

Not supported in Metalama because aspects no longer have a run-time existence. Instead, they only exist at compile time, and generate run-time code.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("Not supported in Metalama because aspects no longer have a run-time existence. Instead, they only exist at compile time, and generate run-time code.", false)]
public interface IInstanceScopedAspect : IAspect

Methods

Name Description
CreateInstance(AdviceArgs)

No equivalent in Metalama.

RuntimeInitializeInstance()

Typically, add an initializer using builder.Advice.AddInitializer(INamedType, string, InitializerKind, object?, object?).

Extension Methods