Class LockSession
Represents a session on a remote lock server under which lock transactions gets executed.
Obtain an instance from local LockManager.MakeSession()
Inheritance
System.Object
LockSession
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Sky.dll
Syntax
public sealed class LockSession : DisposableObject, IDisposable, INamed, IEquatable<LockSession>
Fields
Manager
References manager that opened the session
Declaration
public readonly ILockManagerImplementation Manager
Field Value
Path
Declaration
public readonly string Path
Field Value
Type |
Description |
System.String |
|
ServerHostPrimary
Declaration
public readonly string ServerHostPrimary
Field Value
Type |
Description |
System.String |
|
ServerHostSecondary
Declaration
public readonly string ServerHostSecondary
Field Value
Type |
Description |
System.String |
|
ShardingID
Declaration
public readonly object ShardingID
Field Value
Type |
Description |
System.Object |
|
Properties
Description
Declaration
public string Description { get; }
Property Value
Type |
Description |
System.String |
|
ID
Declaration
public LockSessionID ID { get; }
Property Value
MaxAgeSec
Declaration
public int? MaxAgeSec { get; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
ServerHosts
Returns lock server hosts for his session in the primary -> secondary(if any) sequence
Declaration
public IEnumerable<string> ServerHosts { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
Equals(LockSession)
Declaration
public bool Equals(LockSession other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.IDisposable
System.IEquatable<T>
Extension Methods