public CachedProxy( T target, ProxyGenerator generator, CachingInterceptor interceptor, CachedProxyGenerationOptions options) { Value = generator.CreateInterfaceProxyWithTargetInterface(target, options, interceptor); }
public CacheInvalidatorProxy( ProxyGenerator generator, CacheInvalidatorInterceptor invalidatorInterceptor, CacheProxyExceptionInterceptor exceptionInterceptor, CachedProxyGenerationOptions options) { var throwing = generator.CreateInterfaceProxyWithoutTarget <T>(exceptionInterceptor); Value = generator.CreateInterfaceProxyWithTargetInterface(throwing, options, invalidatorInterceptor); }