Share via


DataCacheServerEndpoint Constructor

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Used to define a cache host in the cache cluster for programmatic configuration of the cache client.

Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Sub New ( _
    hostName As String, _
    cachePort As Integer, _
    cacheHostName As String _
)
'Usage
Dim hostName As String
Dim cachePort As Integer
Dim cacheHostName As String

Dim instance As New DataCacheServerEndpoint(hostName, cachePort, cacheHostName)
public DataCacheServerEndpoint (
    string hostName,
    int cachePort,
    string cacheHostName
)
public:
DataCacheServerEndpoint (
    String^ hostName, 
    int cachePort, 
    String^ cacheHostName
)
public DataCacheServerEndpoint (
    String hostName, 
    int cachePort, 
    String cacheHostName
)
public function DataCacheServerEndpoint (
    hostName : String, 
    cachePort : int, 
    cacheHostName : String
)

Parameters

  • hostName
    The computer name of the cache server.
  • cachePort
    The cache port number of the cache host.
  • cacheHostName
    The Windows service name of the cache host service that is running on the cache server.

Remarks

This class is used with the parameterized DataCacheFactory cache constructor to programmatically configure the cache client. When you configure cache hosts, make sure to specify those hosts that have been designated lead hosts. Lead hosts are the first cache servers installed in the cluster. For more information about lead hosts, see the Physical Model section in General Concept Models (Velocity). You can determine which hosts are lead hosts by using the PowerShell administration tool. For more information about PowerShell, see Cache Administration with PowerShell (Velocity).

See Also

Reference

DataCacheServerEndpoint Class
DataCacheServerEndpoint Members
Microsoft.Data.Caching Namespace