Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Thread­Aware­Extensions Class

ThreadAwareExtensions Class

Provides extension methods to the IThreadAware interface.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Threading.ThreadAwareExtensions

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public static class ThreadAwareExtensions

The ThreadAwareExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAcquireAccess(IThreadAware, ObjectAccessLevel)
Acquires access to given object and returns the ConcurrentAccessToken.
Public methodStatic memberAcquireAccess(IThreadAware, ObjectAccessLevel, ConcurrentAccessToken)
Acquires access for a given object and gets the ConcurrentAccessToken as a reference parameter.
Public methodStatic memberAcquireAccessAsync
Asynchronously acquires access for a given object.
See Also