Share via


DataCacheServerEndpoint Constructor

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

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim hostName As String
Dim cachePort As Integer

Dim instance As New DataCacheServerEndpoint(hostName, cachePort)

Syntax

'Declaration
Public Sub New ( _
    hostName As String, _
    cachePort As Integer _
)
public DataCacheServerEndpoint (
    string hostName,
    int cachePort
)
public:
DataCacheServerEndpoint (
    String^ hostName, 
    int cachePort
)
public DataCacheServerEndpoint (
    String hostName, 
    int cachePort
)
public function DataCacheServerEndpoint (
    hostName : String, 
    cachePort : int
)

Parameters

  • hostName
    The computer name of the cache server.
  • cachePort
    The cache port number of the cache host.

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).

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheServerEndpoint Class
DataCacheServerEndpoint Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26