コード例 #1
0
        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);
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }