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. |
name | Specifies name of the server node where cache is running. |
System. |
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. |
ip | Specifies System. |
System. |
port | Specifies port for client to connect to the server node. |
ServerInfo(Boolean, String, Int32)
It is used in the case where the underlying machines are behind a load balancer. The isLoadBalancer flag signifies whether the server being specified is the load balancer or the underlying machine.
Declaration
public ServerInfo(bool isLoadBalancer, string name, int port = 9800)
Parameters
Type | Name | Description |
---|---|---|
System. |
isLoadBalancer | Indicates that the server IP and port is that of a load balancer. |
System. |
name | Specifies name of the server node where cache is running. |
System. |
port | Specifies port for client to connect to the server node. |