Struct CircuitBreakerBreakDurationEvent

Namespace
Kevlar
Assembly
Kevlar.dll

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

public readonly struct CircuitBreakerBreakDurationEvent
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

Exception

The handled exception, or null when a result was handled.

public Exception? Exception { get; }

Property Value

Exception

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

Result

The handled result (boxed), or null when an exception occurred.

public object? Result { get; }

Property Value

object