public void AfterPropertiesSet()
        {
            if (cachingEnabled != null)
            {
                attributesFactory.SetCachingEnabled(cachingEnabled.Value);
            }
            if (clientNotificationEnabled != null)
            {
                attributesFactory.SetClientNotificationEnabled(clientNotificationEnabled.Value);
            }

            if (lruEntriesLimit != null)
            {
                attributesFactory.SetLruEntriesLimit(lruEntriesLimit.Value);
            }

            if (cloningEnabled != null)
            {
                attributesFactory.SetCloningEnabled(cloningEnabled.Value);
            }

            SetStorageProperties(attributesFactory);
            SetExpirationProperties(attributesFactory);

            gemfireRegionAttributes = attributesFactory.CreateRegionAttributes();
        }
        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);
        }