PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/Await­Instrumentation­Aspect
Open sandboxFocus

Class AwaitInstrumentationAspect

Inheritance
AwaitInstrumentationAspect
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
[AspectDescription("Tracks suspend/resume events on the async method using custom async activities.")]
[ProvideAspectRole("AwaitInstrumentationAspect")]
[AspectRoleDependency]
[AspectRoleDependency]
[LinesOfCodeAvoided(0)]
[Serializer]
public sealed class AwaitInstrumentationAspect : MethodLevelAspect, IMethodLevelAspect, IAspect, IMethodLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation

Constructors

Name Description
AwaitInstrumentationAspect()
AwaitInstrumentationAspect(PortableFormatterConstructorContext)

Methods

Name Description
OnEntry(AsyncCallId)
OnExit(AsyncCallId)
OnResume(AsyncCallId)
OnSuspend(AsyncCallId)