public CacheInterceptor(CacheAdapter cache, ConfigurationForType configurationForType, object target) { _cache = cache; _configurationForType = configurationForType; _target = target; _cachingComponent = new CachingComponent(cache, configurationForType.CacheKey, configurationForType); }
private static void checkCachedMethodsAreVirtual(ConfigurationForType configurationForType) { foreach (var methodInfo in configurationForType.CachedMethods) { checkMethod(configurationForType.ComponentType.ConcreteType, methodInfo); } }
public void Validate(ConfigurationForType configurationForType) { checkCachedMethodsAreVirtual(configurationForType); if (!_proxyFactory.AllowNonVirtualMember) { checkAccessibleMembersAreVirtual(configurationForType.ComponentType.ConcreteType); } }
public CachingComponent(CacheAdapter cache, ICacheKey cacheKey, ConfigurationForType configurationForType) { _cache = cache; _cacheKey = cacheKey; _componentType = configurationForType.ComponentType; UniqueId = configurationForType.CachePerInstance ? Guid.NewGuid().ToString() : "Global"; }
public static void Validate(ConfigurationForType configurationForType) { checkCachedMethodsAreVirtual(configurationForType); }
public CacheInterceptor(CacheAdapter cache, ConfigurationForType configurationForType) { _cache = cache; _configurationForType = configurationForType; }