IConcurrencyController Interface |
Controls access to an entity from possibly several threads.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.16.0 (6.5.16.0)
C#
public interface IConcurrencyController
The IConcurrencyController type exposes the following members.
Name | Description | |
---|---|---|
IsReadOnly |
Determines whether the entity is currently read-only.
| |
IsSharable |
Determines whether the entity can currently be accessed concurrently by several threads.
| |
ThreadingModel |
Gets the ThreadingModel implemented by the current controller.
|
Name | Description | |
---|---|---|
AcquireAccess |
Acquires access on the entity for the current thread and waits synchronously if access cannot be immediately acquired.
| |
AcquireAccessAsync |
Asynchronously acquires access on the entity for the current thread and returns an async awaiter.
| |
CheckAccess |
Determines whether the current thread has a specified level of access to the entity.
| |
RequireAccess |
Determines whether the current thread has a specified level of access to the entity and throws an exception if not.
|
An entity, for the sake of this documentation article, is a group of objects that share the same concurrency controller.
Objects that are controlled by a concurrency controller implement the IThreadAware interface.