Table of Contents

Method OnStateChange

Namespace
LMKit.Agents.Resilience
Assembly
LM-Kit.NET.dll

OnStateChange(Action<CircuitState, CircuitState>)

Sets a callback for state changes.

public CircuitBreakerPolicy OnStateChange(Action<CircuitState, CircuitState> onStateChange)

Parameters

onStateChange Action<CircuitState, CircuitState>

Callback with old and new state.

Returns

CircuitBreakerPolicy

This policy for method chaining.