Enum SessionLockScope
- Namespace
- PushTechnology.ClientInterface.Client.Session
- Assembly
- Diffusion.Client.dll
The scope of a ISessionLock.
public enum SessionLockScope : byte
Fields
UNLOCK_ON_CONNECTION_LOSS = 1The lock will be released when the acquiring ISession loses its current connection to the server.
UNLOCK_ON_SESSION_LOSS = 0The lock will be released when the acquiring ISession is closed.
Examples
Setting the scope of a session lock.
// session is a previously obtained ISession instance.
var lock1 = await session.LockAsync( "lock1", SessionLockScope.UNLOCK_ON_SESSION_LOSS );
var lock2 = await session.LockAsync( "lock2", SessionLockScope.UNLOCK_ON_CONNECTION_LOSS );
Remarks
Added in 6.2.