示例#1
0
        public CachingSettings GetCachingSettings(Type interfaceType)
        {
            string          name        = interfaceType.Name;
            CachingSettings cachingInfo = this.Interfaces.FirstOrDefault(x => string.Compare(x.Name, name, StringComparison.InvariantCultureIgnoreCase) == 0);

            return(cachingInfo);
        }
示例#2
0
        public bool IsCachingEnabledFor(Type interfaceType)
        {
            if (!this.Enabled)
            {
                return(false);
            }

            CachingSettings cachingInfo = this.GetCachingSettings(interfaceType);

            return(cachingInfo != null && cachingInfo.Enabled);
        }