Class CircuitBreakerPolicy
- Namespace
- Polly.CircuitBreaker
- Assembly
- Polly.dll
public class CircuitBreakerPolicy : Policy, ISyncPolicy, ICircuitBreakerPolicy, IsPolicy
- Inheritance
-
CircuitBreakerPolicy
- Implements
- Inherited Members
-
Policy.Cache<TResult>(ISyncCacheProvider<TResult>, ITtlStrategy, Action<Context, string, Exception>)Policy.TimeoutAsync(Func<TimeSpan>, TimeoutStrategy, Func<Context, TimeSpan, Task, Exception, Task>)Policy.Timeout(Func<Context, TimeSpan>, TimeoutStrategy, Action<Context, TimeSpan, Task, Exception>)
- Extension Methods
Properties
CircuitState
public CircuitState CircuitState { get; }
Property Value
LastException
public Exception LastException { get; }
Property Value
Methods
Implementation<TResult>(Func<Context, CancellationToken, TResult>, Context, CancellationToken)
protected override TResult Implementation<TResult>(Func<Context, CancellationToken, TResult> action, Context context, CancellationToken cancellationToken)
Parameters
action
Func<Context, CancellationToken, TResult>context
ContextcancellationToken
CancellationToken
Returns
- TResult
Type Parameters
TResult
Isolate()
public void Isolate()
Reset()
public void Reset()