Class ClientInfo
This class provides detailed information about cache client.
Inheritance
System.Object
ClientInfo
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class ClientInfo : ICloneable, ICompactSerializable
Properties
AppName
Declaration
public string AppName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ClientID
Declaration
public string ClientID { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ClientVersion
Version of NCache client.
Declaration
public int ClientVersion { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
IPAddress
IPAddress of the cache client.
Declaration
public IPAddress IPAddress { get; set; }
Property Value
| Type |
Description |
| System.Net.IPAddress |
|
IsDotNetCore
Declaration
public bool IsDotNetCore { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
LogicalCores
Available logical cores of Cache Client
Declaration
public int LogicalCores { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
MacAddress
Mac Address of cache client
Declaration
public string MacAddress { get; set; }
Property Value
| Type |
Description |
| System.String |
|
MachineName
Name of the machine the client is running on.
Declaration
public string MachineName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Memory
Declaration
public int Memory { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
OperationSystem
Declaration
public string OperationSystem { get; }
Property Value
| Type |
Description |
| System.String |
|
PhysicalCores
Available physical cores of Cache Client
Declaration
public int PhysicalCores { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
ProcessID
Process ID of the cache client.
Declaration
public int ProcessID { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Status
Declaration
public ConnectivityStatus Status { get; set; }
Property Value
Methods
Clone()
Clones the object and returns the newly created clone of the object.
Declaration
Returns
| Type |
Description |
| System.Object |
The newly cloned ClientInfo object
|
Deserialize(CompactReader)
Deserializes the Compact reader object passed to it
Declaration
public void Deserialize(CompactReader reader)
Parameters
Implements
GetLegacyClientID(ClientInfo)
GetLegacyClientId returns the client id in string.
Declaration
public static string GetLegacyClientID(ClientInfo info)
Parameters
Returns
| Type |
Description |
| System.String |
Client id of the client
|
Serialize(CompactWriter)
Serializes the CompactWriter object
Declaration
public void Serialize(CompactWriter writer)
Parameters
Implements
ToString()
Converts Client Info to string , contains client id , Application name ,Process id , machine name and address.
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
ClientInfo in string form
|
Overrides
System.Object.ToString()
TryParseLegacyClientID(String)
TryParseLegacyClientId parse the Client id and get information about the client id in the form of ClientInfo
Declaration
public static ClientInfo TryParseLegacyClientID(string clientId)
Parameters
| Type |
Name |
Description |
| System.String |
clientId |
Client id of the client
|
Returns