2 references to ListenerSubscription
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\Instrument.cs (1)
187internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new ListenerSubscription(listener), (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)).State;
System\Diagnostics\Metrics\MeterListener.cs (1)
79oldState = instrument.EnableMeasurement(new ListenerSubscription(this, state), out oldStateStored);