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