Table of Contents

Class AsyncCircuitBreakerPolicy

Namespace
Polly.CircuitBreaker
Assembly
Polly.dll
public class AsyncCircuitBreakerPolicy : AsyncPolicy, IAsyncPolicy, ICircuitBreakerPolicy, IsPolicy
Inheritance
AsyncCircuitBreakerPolicy
Implements
Inherited Members
Extension Methods

Properties

CircuitState

public CircuitState CircuitState { get; }

Property Value

CircuitState

LastException

public Exception LastException { get; }

Property Value

Exception

Methods

ImplementationAsync<TResult>(Func<Context, CancellationToken, Task<TResult>>, Context, CancellationToken, bool)

protected override Task<TResult> ImplementationAsync<TResult>(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)

Parameters

action Func<Context, CancellationToken, Task<TResult>>
context Context
cancellationToken CancellationToken
continueOnCapturedContext bool

Returns

Task<TResult>

Type Parameters

TResult

Isolate()

public void Isolate()

Reset()

public void Reset()