PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​LockingILock­Handle
Open sandboxFocus

ILockHandle Interface

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

Namespace: PostSharp.Patterns.Caching.Locking
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface ILockHandle

Methods

Name Description
Acquire(TimeSpan, CancellationToken)

Synchronously acquires the lock bound to the current handle.

AcquireAsync(TimeSpan, CancellationToken)

Asynchronously acquires the lock bound to the current handle.

Release()

Synchronously releases the lock bound to the current handle.

ReleaseAsync()

Asynchronously releases the lock bound to the current handle.