Open sandboxFocus

Class AwaitedMethodAttribute

Binds a parameter of an OnMethodYieldAdvice method to the method called by the async method to get the object it awaits.

Inheritance
AwaitedMethodAttribute
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class AwaitedMethodAttribute : AdviceParameterAttribute
Remarks

The parameter must be of type MethodBase, MemberInfo or object, and it cannot be ref, in or out. Its value is null when the compiler cannot identify the method from the code of the await expression. This attribute can be used only in OnMethodYieldAdvice.

Constructors

Name Description
AwaitedMethodAttribute()

See Also