From: Brian Robbins Date: Wed, 1 Aug 2018 19:48:42 +0000 (-0700) Subject: Provide a desktop-only implementation of RuntimeThread.CurrentOSThreadId for Microsof... X-Git-Tag: submit/tizen/20210909.063632~11030^2~4241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c486a5aca935a55315af82e140f3ee5754e990a;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Provide a desktop-only implementation of RuntimeThread.CurrentOSThreadId for Microsoft.Diagnostics.Tracing.EventSource.Redist. Signed-off-by: dotnet-bot Commit migrated from https://github.com/dotnet/coreclr/commit/9700313f2684c784d025a638b0ae5de4ba2dcb00 --- diff --git a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs index 9ebb103..653adc3 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs @@ -181,6 +181,7 @@ using System.Security.Permissions; using System.Text; using System.Threading; using Microsoft.Win32; +using Internal.Runtime.Augments; #if ES_BUILD_STANDALONE using EventDescriptor = Microsoft.Diagnostics.Tracing.EventDescriptor; @@ -196,10 +197,6 @@ using Contract = System.Diagnostics.Contracts.Contract; using Contract = Microsoft.Diagnostics.Contracts.Internal.Contract; #endif -#if CORECLR || ES_BUILD_PN -using Internal.Runtime.Augments; -#endif - #if ES_BUILD_STANDALONE namespace Microsoft.Diagnostics.Tracing #else