Пример #1
0
 public Interceptor(ICacheInterceptor cacheInterceptor, ITransactionInterceptor transactionInterceptor)
 {
     _cacheInterceptor       = cacheInterceptor;
     _transactionInterceptor = transactionInterceptor;
 }
Пример #2
0
 public void SetInterceptor(ICacheInterceptor interceptor)
 {
     _interceptor = interceptor;
 }
 public RepositoryDecorator(ICacheInterceptor cacheInterceptor)
 {
     _proxyGenerator  = new ProxyGenerator();
     CacheInterceptor = cacheInterceptor;
 }
Пример #4
0
 public CacheInitializer(string key, Func <T> initializer)
 {
     _key         = key;
     _initializer = initializer;
     _interceptor = new DefaultCacheInterceptor();
 }
Пример #5
0
 public CacheVariableBuilder <T> WrapInitializationWith(ICacheInterceptor interceptor)
 {
     _interceptor = interceptor;
     return(this);
 }