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

            Value = generator.CreateInterfaceProxyWithTargetInterface(throwing, options, invalidatorInterceptor);
        }