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)

Syntax

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

Dim instance As New DataCacheServerEndpoint(hostName, _
    cachePort)
public DataCacheServerEndpoint(
    string hostName,
    int cachePort
)
public:
DataCacheServerEndpoint(
    String^ hostName, 
    int cachePort
)
new : 
        hostName:string * 
        cachePort:int -> DataCacheServerEndpoint
public function DataCacheServerEndpoint(
    hostName : String, 
    cachePort : int
)

Parameters

Remarks

This class is used with the parameterized DataCacheFactory cache constructor to programmatically configure the cache client.

Note

When you configure cache hosts in Microsoft AppFabric 1.1 for Windows Server Caching, make sure to specify those hosts that have been designated lead hosts. This applies to cache clusters that use Xml for the configuration store. Lead hosts are the first cache servers installed in the cluster.

Note

When you configure cache hosts in Windows Azure Shared Caching, specify the service URL from the .

See Also

Reference

DataCacheServerEndpoint Class

Microsoft.ApplicationServer.Caching Namespace