Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f48a970

Browse files
authored
[Release/2.2 Port] Expose EventWrittenEventArgs.OSThreadId and EventWrittenEventArgs.TimeStamp in System.Diagnostics.Tracing contract (#31703)
* Expose EventWrittenEventArgs.OSThreadId and EventWrittenEventArgs.TimeStamp in the System.Diagnostics.Tracing contract. (#31564) * Only update the contract for netcoreapp.
1 parent b6e7cef commit f48a970

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/System.Diagnostics.Tracing/ref/System.Diagnostics.Tracing.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ internal EventWrittenEventArgs() { }
294294
public System.Diagnostics.Tracing.EventTags Tags { get { throw null; } }
295295
public System.Diagnostics.Tracing.EventTask Task { get { throw null; } }
296296
public byte Version { get { throw null; } }
297+
#if FEATURE_EVENTLISTENERCONTEXT
298+
public long OSThreadId { get { throw null; } }
299+
public DateTime TimeStamp { get { throw null; } }
300+
#endif
297301
}
298302
[System.AttributeUsageAttribute((System.AttributeTargets)(64))]
299303
public sealed partial class NonEventAttribute : System.Attribute

src/System.Diagnostics.Tracing/ref/System.Diagnostics.Tracing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<ProjectGuid>{0D8C8BAE-E5A5-4E9F-B101-3D18BD81D261}</ProjectGuid>
77
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'netfx'">true</IsPartialFacadeAssembly>
8-
<DefineConstants Condition="'$(TargetGroup)' == 'netcoreapp'">$(DefineConstants);FEATURE_ETLEVENTS</DefineConstants>
8+
<DefineConstants Condition="'$(TargetGroup)' == 'netcoreapp'">$(DefineConstants);FEATURE_ETLEVENTS;FEATURE_EVENTLISTENERCONTEXT</DefineConstants>
99
<!-- CS0067: unused event, reference assembly does not care -->
1010
<NoWarn>$(NoWarn);0067</NoWarn>
1111
</PropertyGroup>

0 commit comments

Comments
 (0)