PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsAwait­Instrumentation­Aspect
Open sandboxFocus

AwaitInstrumentationAspect Class

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)