diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-07-18 14:02:13 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-19 12:47:37 -0700 |
commit | f26b8eea691d51332b2bd46ff32643f235c8ab14 (patch) | |
tree | 0d3668994892810e33f72bdb9aa7977cf720c085 /src | |
parent | f52752659c90c912af263b378d50e0dd0dcaf120 (diff) | |
download | coreclr-f26b8eea691d51332b2bd46ff32643f235c8ab14.tar.gz coreclr-f26b8eea691d51332b2bd46ff32643f235c8ab14.tar.bz2 coreclr-f26b8eea691d51332b2bd46ff32643f235c8ab14.zip |
Fix desktop build break
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs index 534e387d27..6ee5f25f84 100644 --- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs +++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs @@ -4049,8 +4049,12 @@ namespace System.Diagnostics.Tracing if (!s_EventSourceShutdownRegistered) { s_EventSourceShutdownRegistered = true; +#if ES_BUILD_PN + AppContext.ProcessExit += DisposeOnShutdown; +#else AppDomain.CurrentDomain.ProcessExit += DisposeOnShutdown; AppDomain.CurrentDomain.DomainUnload += DisposeOnShutdown; +#endif } @@ -5943,4 +5947,3 @@ namespace System.Diagnostics.Tracing #endregion } - |