Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Rename TplEtwProvider in non-shared partition
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Jan 25, 2019
1 parent ca760ba commit 0edc16a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -25,6 +25,7 @@
<PropertyGroup>
<ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
<ExcludeAssemblyInfoPartialFile>true</ExcludeAssemblyInfoPartialFile>
<TargetsCoreRT>true</TargetsCoreRT>
<UseSyncTable>true</UseSyncTable>
<DefineConstants>netcoreapp;EETYPE_TYPE_MANAGER;ES_BUILD_PN;ES_SESSION_INFO;$(DefineConstants)</DefineConstants>
</PropertyGroup>
Expand Down
Expand Up @@ -31,8 +31,8 @@ public partial class EventSource : IDisposable
[System.Security.SecuritySafeCritical]
public static void SetCurrentThreadActivityId(Guid activityId)
{
if (TplEtwProvider.Log != null)
TplEtwProvider.Log.SetActivityId(activityId);
if (TplEventSource.Log != null)
TplEventSource.Log.SetActivityId(activityId);
#if FEATURE_MANAGED_ETW
#if FEATURE_ACTIVITYSAMPLING
Guid newId = activityId;
Expand Down Expand Up @@ -94,8 +94,8 @@ public static void SetCurrentThreadActivityId(Guid activityId, out Guid oldActiv

// We don't call the activityDying callback here because the caller has declared that
// it is not dying.
if (TplEtwProvider.Log != null)
TplEtwProvider.Log.SetActivityId(activityId);
if (TplEventSource.Log != null)
TplEventSource.Log.SetActivityId(activityId);
}

/// <summary>
Expand Down

0 comments on commit 0edc16a

Please sign in to comment.