Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ActivityListener.cs
Go to the documentation of this file.
1namespace System.Diagnostics;
2
3public sealed class ActivityListener : IDisposable
4{
5 public Action<Activity>? ActivityStarted { get; set; }
6
7 public Action<Activity>? ActivityStopped { get; set; }
8
9 public Func<ActivitySource, bool>? ShouldListenTo { get; set; }
10
11 public SampleActivity<string>? SampleUsingParentId { get; set; }
12
13 public SampleActivity<ActivityContext>? Sample { get; set; }
14
15 public void Dispose()
16 {
18 }
19}
Func< ActivitySource, bool >? ShouldListenTo
SampleActivity< ActivityContext >? Sample
SampleActivity< string >? SampleUsingParentId
static void DetachListener(ActivityListener listener)