Enum SessionLockScope
The scope of a ISessionLock.
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public enum SessionLockScope : byte
Remarks
Added in 6.2.
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 );
Fields
Name | Description |
---|---|
UNLOCK_ON_CONNECTION_LOSS | The lock will be released when the acquiring ISession loses its current connection to the server. |
UNLOCK_ON_SESSION_LOSS | The lock will be released when the acquiring ISession is closed. |