Esempio n. 1
0
 /// <summary>
 /// Constructs a new instance of the execution plan
 /// </summary>
 public CacheExecutionPlan(ICache cache, ICacheExceptionHandler exceptionHandler, ICacheStrategy <T> cacheStrategy)
 {
     _cache              = cache;
     _exceptionHandler   = exceptionHandler;
     _cacheStrategy      = cacheStrategy;
     _cacheStrategyAsync = cacheStrategy as ICacheStrategyAsync <T>;
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs a new instance of the execution plan using the default circuit breaker
 /// </summary>
 public CircuitBreakerCacheExecutionPlan(ICache cache, ICacheExceptionHandler exceptionHandler, ICacheStrategy <T> cacheStrategy)
     : this(cache, exceptionHandler, cacheStrategy, GetDefaultCircuitBreaker())
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Constructs a new instance of the execution plan
 /// </summary>
 public CircuitBreakerCacheExecutionPlan(ICache cache, ICacheExceptionHandler exceptionHandler, ICacheStrategy <T> cacheStrategy, CircuitBreaker.ICircuitBreakerState circuitBreaker)
     : base(cache, exceptionHandler, cacheStrategy)
 {
     _circuitBreaker = circuitBreaker;
 }