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

Commit

Permalink
minor review comments and func tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudmila Molkova committed May 3, 2017
1 parent 7e0a386 commit e29dc2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected virtual void Dispose(bool disposing)
/// <summary>
/// Initialize for framework event source (not supported for Net40).
/// </summary>
private void InitializeForFrameworkEventSource()
private void InitializeForDiagnosticAndFrameworkEventSource()
{
#if NET45
DesktopDiagnosticSourceHttpProcessing desktopHttpProcessing = new DesktopDiagnosticSourceHttpProcessing(
Expand Down Expand Up @@ -267,21 +267,21 @@ private void InitializeForRuntimeInstrumentationOrFramework()
}
catch (Exception exp)
{
this.InitializeForFrameworkEventSource();
this.InitializeForDiagnosticAndFrameworkEventSource();
DependencyCollectorEventSource.Log.ProfilerFailedToAttachError(exp.ToInvariantString());
}
}
else
{
// if config is set to disable runtime instrumentation then default to framework event source
this.InitializeForFrameworkEventSource();
this.InitializeForDiagnosticAndFrameworkEventSource();
DependencyCollectorEventSource.Log.RemoteDependencyModuleVerbose("Runtime instrumentation is set to disabled. Initialize with framework event source instead.");
}
}
else
{
// if profiler is not attached then default to framework event source
this.InitializeForFrameworkEventSource();
this.InitializeForDiagnosticAndFrameworkEventSource();

// Log a message to indicate the profiler is not attached
DependencyCollectorEventSource.Log.RemoteDependencyModuleProfilerNotAttached();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private static IDisposable DotNetCoreTestSetup()
{
EnsureDotNetCoreInstalled();

return new ExpectedSDKPrefixChanger("rddd");
return new ExpectedSDKPrefixChanger("rdddsc");
}

private const string AspxCoreTestAppFolder = "..\\TestApps\\AspxCore\\";
Expand Down

0 comments on commit e29dc2a

Please sign in to comment.