PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingReentrant­Attribute
Open sandboxFocus

ReentrantAttribute Class

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
[MulticastAttributeUsage]
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.