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); }
public bool IsCachingEnabledFor(Type interfaceType) { if (!this.Enabled) { return(false); } CachingSettings cachingInfo = this.GetCachingSettings(interfaceType); return(cachingInfo != null && cachingInfo.Enabled); }