MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsIInstance­Scoped­Aspect
Open sandboxFocus

IInstanceScopedAspect Interface

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
public interface IInstanceScopedAspect : IAspect

Methods

Name Description
CreateInstance(AdviceArgs)

No equivelent in Metalama.

RuntimeInitializeInstance()

Typically, add an initializer using builder.Advice.AddInitializer(INamedType, String, InitializerKind, Object, Object).