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()); }
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); } }