TsgcWSCircuitBreaker › Methods › ResetAll
Clears every tracked circuit, every rolling-window counter and all aggregate Metrics.
procedure ResetAll;
Drops every per-key state and every per-key rolling-window counter, and zeros all fields of Metrics (TotalCalls, TotalSuccesses, TotalFailures, TotalRejected, CurrentOpenBreakers, AverageLatencyMs). Equivalent to calling Reset on every key plus zeroing the aggregates. OnStateChange fires for each key that was not already Closed. Typical use: at service startup to discard a stale persisted state, or during integration tests to isolate one scenario from the next. Use Reset(key) when you only need to clear a single circuit.
// Clear every circuit and every aggregate counter before a test run
sgcWSCircuitBreaker1.ResetAll;