Skip to content

Compono.Metrics.CapturingMeterFactory.Dispose()

Compono.Metrics

Compono.Metrics.CapturingMeterFactory

CapturingMeterFactory.Dispose() Method

Disposes every meter this factory created (raising MeasurementsCompleted), then its System.Diagnostics.Metrics.MeterListener. Idempotent and thread-safe. Captured measurements stay readable afterwards; measurements recorded on the disposed meters' instruments are no longer captured. Disposing a System.Diagnostics.Metrics.Meter a consumer obtained from Create(MeterOptions) is a no-op - the factory owns the meter's lifetime, matching DefaultMeterFactory.

public void Dispose();

Implements Dispose()