Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180923

ClientCacheFactory.set("name", clientName) in .net native client

$
0
0

Hi,

 

I ported my Java client over to .net, but could not figure out how to set the name. This is how I do it in Java:

 

new ClientCacheFactory().set("name", clientName)

On the GemFire server side, I can then get the name e.g. by means of:

public void memberJoined(BridgeMembershipEvent event)
{     String clientName = event.getMember().getName();

In C#, I tried to do

CacheFactory.CreateCacheFactory().Set("name", clientName)

which does not throw an error (like it does when I use some made-up property key), but it will not set the client name either.

The name of a .net client will default to "default_GemfireDS".

Is there a way to set the name in .net?


Viewing all articles
Browse latest Browse all 180923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>