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(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.Boolean | isLoadBalancer | Indicates that the server IP and port is that of a load balancer. |
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. |