1 write to Listener
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\MeterListener.cs (1)
335Listener = listener;
13 references to Listener
System.Diagnostics.DiagnosticSource (13)
System\Diagnostics\Metrics\Instrument.common.cs (1)
99current.Value.Listener.NotifyMeasurement(this, measurement, tags, current.Value.State);
System\Diagnostics\Metrics\Instrument.cs (12)
153current.Value.Listener.DisableMeasurementEvents(this); 175if (!_subscriptions.AddIfNotExist(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener))) 177ListenerSubscription oldSubscription = _subscriptions.Remove(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 178_subscriptions.AddIfNotExist(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 179oldStateStored = object.ReferenceEquals(oldSubscription.Listener, subscription.Listener); 187internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new ListenerSubscription(listener), (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)).State; 200if (object.ReferenceEquals(listener, current.Value.Listener))