public void CreateRegion(string name, bool enableNotification, bool cloningEnabled) { Apache.Geode.Client.RegionAttributes <object, object> attrs; AttributesFactory <object, object> attrFac = new AttributesFactory <object, object>(); attrFac.SetCacheListener(new SimpleCacheListener <object, object>()); attrFac.SetCloningEnabled(cloningEnabled); attrs = attrFac.CreateRegionAttributes(); CacheHelper.CreateRegion <object, object>(name, attrs); }
protected virtual void SetCallbacks(AttributesFactory attributesFactory) { if (cacheListener != null) { foreach (ICacheListener listener in cacheListener) { attributesFactory.SetCacheListener(listener); } } if (cacheLoader != null) { attributesFactory.SetCacheLoader(cacheLoader); } if (cacheWriter != null) { attributesFactory.SetCacheWriter(cacheWriter); } }