NamedCacheAsyncNamedCacheDataAccessorAcquireOrUpdateLock Method

ScaleOut Software NamedCache API
Overrides the AcquireOrUpdateLock(Boolean) implementation of this method by throwing a InvalidOperationException.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public override StateServerResult AcquireOrUpdateLock(
	bool throwOnError
)

Parameters

throwOnError
Type: SystemBoolean
ignored. This override always throws an InvalidOperationException.

Return Value

Type: StateServerResult
Exceptions

ExceptionCondition
InvalidOperationExceptionis thrown in all cases
Remarks

Because NamedCacheAsyncNamedCacheDataAccessor instances are not thread-stable, the LockTicket value is not valid between API calls. Consequently, acquiring a lock via a NamedCacheAsyncNamedCacheDataAccessor requires the caller to hold onto the resulting LockTicket which is not returned via AcquireOrUpdateLock(Boolean). Use AcquireOrUpdateLockAsync(Boolean, LockTicket, CancellationToken) instead.
See Also

Reference