<PackageReference Include="Polly.Core" Version="8.0.0-beta.2" />

OnCircuitOpenedArguments<TResult>

public struct OnCircuitOpenedArguments<TResult> : IOutcomeArguments<TResult>
Arguments used by OnOpened event.
public TimeSpan BreakDuration { get; }

Gets the duration of break.

public ResilienceContext Context { get; }

Gets the context of this event.

public bool IsManual { get; }

Gets a value indicating whether the circuit was opened manually by using CircuitBreakerManualControl.

public Outcome<TResult> Outcome { get; }

Gets the outcome that caused the circuit to open.

public OnCircuitOpenedArguments(ResilienceContext context, Outcome<TResult> outcome, TimeSpan breakDuration, bool isManual)

Initializes a new instance of the OnCircuitOpenedArguments<T> struct.