/// <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>;
 }
示例#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())
 {
 }
示例#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;
 }