Struct CircuitBreakerBreakDurationEvent<TResult>

Namespace
Kevlar
Assembly
Kevlar.dll

Describes the typed handled outcome that is about to open a circuit.

public readonly struct CircuitBreakerBreakDurationEvent<TResult>

Type Parameters

TResult

The shield result type.

Inherited Members

Properties

ConsecutiveFailures

The consecutive handled-failure count when the circuit opened.

public int ConsecutiveFailures { get; }

Property Value

int

Context

The ambient execution context. It is pooled; do not retain it or its property bag after the callback completes.

public KevlarContext Context { get; }

Property Value

KevlarContext

FailureCount

The handled-failure count when the circuit opened.

public long FailureCount { get; }

Property Value

long

FailureRate

The handled-failure ratio when the circuit opened.

public double FailureRate { get; }

Property Value

double

Outcome

The handled outcome that opened the circuit.

public Outcome<TResult> Outcome { get; }

Property Value

Outcome<TResult>