Aspectacular.ObjectCacheFacade.ObjectCacheFacade C# (CSharp) Method

ObjectCacheFacade() protected method

protected ObjectCacheFacade ( ObjectCache cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : System
cache ObjectCache
cachePolicyTemplate System.Runtime.Caching.CacheItemPolicy Template from which all items will get their CacheItemPolicy cloned.
regionName string
return System
        protected internal ObjectCacheFacade(ObjectCache cache, CacheItemPolicy cachePolicyTemplate, string regionName = null)
        {
            if(cache == null)
                throw new ArgumentNullException("cache");

            if(cacheTemplatePolicy == null)
                throw new ArgumentNullException("cacheTemplatePolicy");

            this.objectCache = cache;
            this.cacheTemplatePolicy = cachePolicyTemplate;
            this.regionName = regionName;
        }