NamedCacheReleaseLockAsync Method

ScaleOut Software NamedCache API
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: Task
an awaitable Task
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when id is null.
Remarks

Calling ReleaseLockAsync(CachedObjectId, LockTicket, CancellationToken) on an object that is not locked with the supplied lockTicket has no effect.
See Also

Reference