Method GetCacheClients
GetCacheClients(String, CacheConnection)
Get information of clients connected to each server node in a cache.
Declaration
public static Dictionary<ServerNode, List<ClientInfo>> GetCacheClients(string cacheName, CacheConnection connection = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
cacheName | The identifier for the ICache. |
Cache |
connection | Cache |
Returns
Type | Description |
---|---|
Dictionary<Alachisoft. |
Key value pair of Alachisoft. |
Examples
The following example shows how to get connected clients to each server node in a cache.
CacheConnection cacheConnection = new CacheConnection("remoteServer", 8250);
cacheConnection.UserCredentials = new Credentials("domain\\user-id", "password");
Dictionary<ServerNode, List<Alachisoft.NCache.Runtime.Caching.ClientInfo> info = CacheManager.GetCacheClients("myCache", cacheConnection);