Asynchronously releases the lock on a cached object.
Namespace: Soss.Client
Assembly: soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax
public Task ReleaseLockAsync( CachedObjectId id, LockTicket lockTicket, CancellationToken cancellationToken = null )
Parameters
- id
- Type: Soss.ClientCachedObjectId
Object identifier. - lockTicket
- Type: Soss.ClientLockTicket
a LockTicket returned by AcquireLockAsync(CachedObjectId, LockTicket, CancellationToken), or RetrieveAsync(CachedObjectId, RetrieveOptions, LockTicket, CancellationToken), or PutAsync(CachedObjectId, Object, CreatePolicy, PutOptions, LockTicket, CancellationToken) that represents the object lock state in the cache. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
An optional CancellationToken that can be used to cancel the asynchronous operation.
Return Value
Type: Taskan awaitable Task
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when id is null. |
Remarks
See Also