Struct OnCircuitClosedArguments<TResult>
- Namespace
- Polly.CircuitBreaker
- Assembly
- Polly.Core.dll
Arguments used by OnClosed event.
public readonly struct OnCircuitClosedArguments<TResult>
Type Parameters
TResult
The type of result.
- Inherited Members
Remarks
Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
Constructors
OnCircuitClosedArguments(ResilienceContext, Outcome<TResult>, bool)
Initializes a new instance of the OnCircuitClosedArguments<TResult> struct.
public OnCircuitClosedArguments(ResilienceContext context, Outcome<TResult> outcome, bool isManual)
Parameters
context
ResilienceContextThe outcome of the resilience operation or event.
outcome
Outcome<TResult>The context in which the resilience operation or event occurred.
isManual
boolIndicates whether the circuit was closed manually by using CircuitBreakerManualControl.
Properties
Context
Gets the context of this event.
public ResilienceContext Context { get; }
Property Value
IsManual
Gets a value indicating whether the circuit was closed manually by using CircuitBreakerManualControl.
public bool IsManual { get; }
Property Value
Outcome
Gets the outcome that caused the circuit breaker to be closed.
public Outcome<TResult> Outcome { get; }
Property Value
- Outcome<TResult>