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