PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Caching.​Locking Namespace/ILock­Handle Interface

ILockHandle Interface

Allows to acquire and release a named lock returned by GetLock(String).

Namespace:  PostSharp.Patterns.Caching.Locking
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public interface ILockHandle : IDisposable

The ILockHandle type exposes the following members.

Methods
  NameDescription
Public methodAcquire
Synchronously acquires the lock bound to the current handle.
Public methodAcquireAsync
Asynchronously acquires the lock bound to the current handle.
Public methodRelease
Synchronously releases the lock bound to the current handle.
Public methodReleaseAsync
Asynchronously releases the lock bound to the current handle.
See Also