To answer this question I am using the Pivotal Native Client to create many local client caches so each local client cache would have their own Listener
. I come up against a problem which is that from the QuickStart example after the cache, pool and region factory are created as default no matter what kind of RegionShortcut
is used for example .LOCAL
or any other
RegionFactory rf = c.CreateRegionFactory(RegionShortcut.LOCAL);
then:
IRegion<string, string> region = rf.SetPoolName(poolName).Create<string, string>("exampleRegion");
is fine for the 1st instance of a client cache, but once any other is attempted as another local client cache then that code above gives the error:
An unhandled exception of type 'Apache.Geode.Client.RegionExistsException' occurred in Pivotal.Gemfire.dll
Additional information: Cache::createRegion: "exampleRegion" region exists in local cache
So how can you create many local client caches within the same C# project?