Open sandboxFocus

Class ReentrantAttribute

Custom attribute that means that the async method to which it is applied can be safely re-entered on each await statement. In case of lock-based models, it means that the lock is released while awaiting. For the actor model, it means that other methods can be invoked during awaiting.

Inheritance
ReentrantAttribute
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method)]
[MulticastAttributeUsage(MulticastTargets.Method, AllowMultiple = false)]
public sealed class ReentrantAttribute : MulticastAttribute, IValidableAnnotation

Constructors

Name Description
ReentrantAttribute()

Methods

Name Description
CompileTimeValidate(object)

Method invoked at build time to ensure that the aspect has been applied to the right target.