Provides extension methods to the IThreadAware interface.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Common.dll
Syntax
public static class ThreadAwareExtensions
Methods
Name | Description |
---|---|
AcquireAccess(IThreadAware, ObjectAccessLevel) | Acquires access to given object and returns the ConcurrentAccessToken. |
AcquireAccess(IThreadAware, ObjectAccessLevel, ref ConcurrentAccessToken) | Acquires access for a given object and gets the ConcurrentAccessToken as a reference parameter. |
AcquireAccessAsync(IThreadAware, ObjectAccessLevel) | Asynchronously acquires access for a given object. |