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