3 references to Remove
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\Instrument.cs (2)
177ListenerSubscription oldSubscription = _subscriptions.Remove(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 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)
114if (instrument is null || _enabledMeasurementInstruments.Remove(instrument, object.ReferenceEquals) == default)