public override void Dispose() { latchSubscription?.Dispose(); stream?.Unsubscribe(); latchSubscription = null; stream = null; base.Dispose(); }
private void UnsubscribeAll() { _healthCountsStream.Unsubscribe(); _rollingCommandEventCounterStream.Unsubscribe(); _cumulativeCommandEventCounterStream.Unsubscribe(); _rollingCommandLatencyDistributionStream.Unsubscribe(); _rollingCommandUserLatencyDistributionStream.Unsubscribe(); _rollingCommandMaxConcurrencyStream.Unsubscribe(); }
public override void Dispose() { base.Dispose(); stream.Unsubscribe(); }