Constructor ServerInfo
ServerInfo(String, Int32)
It initializes a new instance of ServerInfo.
Declaration
public ServerInfo(string name, int port = 9800)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Specifies name of the server node where cache is running. |
System.Int32 | port | Specifies port for client to connect to the server node. |
ServerInfo(IPAddress, Int32)
It initializes new instance of ServerInfo.
Declaration
public ServerInfo(IPAddress ip, int port = 9800)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | ip | Specifies System.Net.IPAddress of the server node where cache is running. |
System.Int32 | port | Specifies port for client to connect to the server node. |
ServerInfo(String, Int32, Boolean)
It is used in the case of load balancer where the underlying machines are behind a load balancer. The isLoadBalancer flag passed in the constructor signifies whether the server being added is the load balancer or the underlying machine
Declaration
public ServerInfo(string name, int port = 9800, bool isLoadBalancer = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Specifies name of the server node where cache is running. |
System.Int32 | port | Specifies port for client to connect to the server node. |
System.Boolean | isLoadBalancer | Specifies whether the server is a load balancer |