Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ActivityEvent.cs
Go to the documentation of this file.
2
3namespace System.Diagnostics;
4
5public readonly struct ActivityEvent
6{
8
9 public string Name { get; }
10
11 public DateTimeOffset Timestamp { get; }
12
14
15 public ActivityEvent(string name)
16 : this(name, DateTimeOffset.UtcNow, s_emptyTags)
17 {
18 }
19
20 public ActivityEvent(string name, DateTimeOffset timestamp = default(DateTimeOffset), ActivityTagsCollection? tags = null)
21 {
22 Name = name ?? string.Empty;
23 Tags = tags ?? s_emptyTags;
25 }
26}
static DateTimeOffset UtcNow
ActivityEvent(string name, DateTimeOffset timestamp=default(DateTimeOffset), ActivityTagsCollection? tags=null)
IEnumerable< KeyValuePair< string, object?> > Tags
static readonly ActivityTagsCollection s_emptyTags