PostSharpAPI ReferencePost­Sharp.​AspectsIInstance­Scoped­Aspect
Open sandboxFocus

IInstanceScopedAspect Interface

Runtime semantics of aspects that have the same lifetime as instance of types to which their are applied (or instance of the declaring type of members to which they are applied).

Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
public interface IInstanceScopedAspect : IAspect


Name Description

Creates a new instance of the aspect based on the current instance, serving as a prototype.


Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed.