Initializes a new instance of the CacheSyncDependency with the specified parameters. Internally it tries to initialize the remote cache. If the cache can not be initialized, it throws the exception describing the cause of failure. The remote cache must be running as outproc even if it is on the same machine.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public CacheSyncDependency(
	string remoteCacheId,
	string key,
	string server,
	int port
)
Visual Basic
Public Sub New ( 
	remoteCacheId As String,
	key As String,
	server As String,
	port As Integer
)
Visual C++
public:
CacheSyncDependency(
	String^ remoteCacheId, 
	String^ key, 
	String^ server, 
	int port
)

Parameters

remoteCacheId
Type: System..::..String
The unique id of the remote cache
key
Type: System..::..String
The key of the item in the remote cache with which the local cache item will be kept synchronized.
server
Type: System..::..String
The name of the server where the remote cache is running
port
Type: System..::..Int32
The port used by the client to connect to the server

See Also