Class CircuitBreakerStateChangedEventArgs
- Namespace
- WorkflowForge.Extensions.Resilience.Abstractions
- Assembly
- WorkflowForge.Extensions.Resilience.dll
Event arguments for circuit breaker state changes.
public sealed class CircuitBreakerStateChangedEventArgs : EventArgs
- Inheritance
-
CircuitBreakerStateChangedEventArgs
- Inherited Members
Constructors
CircuitBreakerStateChangedEventArgs(CircuitBreakerState, CircuitBreakerState, string, ISystemTimeProvider?)
Initializes a new instance of the CircuitBreakerStateChangedEventArgs class.
public CircuitBreakerStateChangedEventArgs(CircuitBreakerState previousState, CircuitBreakerState currentState, string reason, ISystemTimeProvider? timeProvider = null)
Parameters
previousStateCircuitBreakerStateThe previous state.
currentStateCircuitBreakerStateThe current state.
reasonstringThe reason for the state change.
timeProviderISystemTimeProviderOptional time provider for timestamp.
Properties
CurrentState
Gets the current state.
public CircuitBreakerState CurrentState { get; }
Property Value
PreviousState
Gets the previous state.
public CircuitBreakerState PreviousState { get; }
Property Value
Reason
Gets the reason for the state change.
public string Reason { get; }
Property Value
Timestamp
Gets the timestamp of the state change.
public DateTimeOffset Timestamp { get; }