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