Esempio n. 1
0
        public void CreateRegionWithTallyWriter(ScopeType scope)
        {
            AttributesFactory af = new AttributesFactory();

            af.SetCacheWriter(m_lwr);
            af.SetScope(scope);
            af.SetCachingEnabled(true);

            m_netWriteRegion = CacheHelper.CreateRegion(TestRegionWrite,
                                                        af.CreateRegionAttributes());
        }
Esempio n. 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);
     }
 }
 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);
     }
 }