summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-07-18 14:02:13 -0700
committerJan Kotas <jkotas@microsoft.com>2018-07-19 12:47:37 -0700
commitf26b8eea691d51332b2bd46ff32643f235c8ab14 (patch)
tree0d3668994892810e33f72bdb9aa7977cf720c085 /src
parentf52752659c90c912af263b378d50e0dd0dcaf120 (diff)
downloadcoreclr-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.cs5
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
}
-