3 instantiations of DiagnosticSubscription
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\DiagnosticListener.cs (3)
328return new DiagnosticSubscription() { Observer = subscriptions.Observer, Owner = subscriptions.Owner, IsEnabled1Arg = subscriptions.IsEnabled1Arg, IsEnabled3Arg = subscriptions.IsEnabled3Arg, Next = Remove(subscriptions.Next, subscription) }; 436return new DiagnosticSubscription() { Owner = this }; 438DiagnosticSubscription newSubscription = new DiagnosticSubscription()
16 references to DiagnosticSubscription
System.Diagnostics.DiagnosticSource (16)
System\Diagnostics\DiagnosticListener.cs (14)
185DiagnosticSubscription? subscriber = null; 230for (DiagnosticSubscription? curSubscription = _subscriptions; curSubscription != null; curSubscription = curSubscription.Next) 244for (DiagnosticSubscription? curSubscription = _subscriptions; curSubscription != null; curSubscription = curSubscription.Next) 258for (DiagnosticSubscription? curSubscription = _subscriptions; curSubscription != null; curSubscription = curSubscription.Next) 284internal DiagnosticSubscription? Next; // Linked list of subscribers 291DiagnosticSubscription? subscriptions = Owner._subscriptions; 292DiagnosticSubscription? newSubscriptions = Remove(subscriptions, this); // Make a new list, with myself removed. 298var cur = newSubscriptions; 311private static DiagnosticSubscription? Remove(DiagnosticSubscription? subscriptions, DiagnosticSubscription subscription) 429private DiagnosticSubscription SubscribeInternal(IObserver<KeyValuePair<string, object?>> observer, 438DiagnosticSubscription newSubscription = new DiagnosticSubscription() 454private volatile DiagnosticSubscription? _subscriptions;
System\Diagnostics\DiagnosticSourceActivity.cs (2)
126for (DiagnosticSubscription? curSubscription = _subscriptions; curSubscription != null; curSubscription = curSubscription.Next) 132for (DiagnosticSubscription? curSubscription = _subscriptions; curSubscription != null; curSubscription = curSubscription.Next)