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

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudmila Molkova committed May 2, 2017
1 parent e8d9086 commit 84bd166
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,14 @@ public void TestInitialize()
this.configuration.TelemetryChannel = new StubTelemetryChannel { OnSend = item => this.sendItems.Add(item) };
this.configuration.InstrumentationKey = Guid.NewGuid().ToString();
this.httpDesktopProcessingFramework = new DesktopDiagnosticSourceHttpProcessing(this.configuration, new ObjectInstanceBasedOperationHolder(), /*setCorrelationHeaders*/ true, new List<string>(), RandomAppIdEndpoint);
var correlationIdLookupHelper = new CorrelationIdLookupHelper((string ikey) =>
{
// Pretend App Id is the same as Ikey
var tcs = new TaskCompletionSource<string>();
tcs.SetResult(ikey);
return tcs.Task;
});
this.httpDesktopProcessingFramework.OverrideCorrelationIdLookupHelper(correlationIdLookupHelper);
this.httpDesktopProcessingFramework.OverrideCorrelationIdLookupHelper(new CorrelationIdLookupHelper(new Dictionary<string, string> { { this.configuration.InstrumentationKey, "cid-v1:" + this.configuration.InstrumentationKey } }));
DependencyTableStore.Instance.IsDesktopHttpDiagnosticSourceActivated = false;
}

[TestCleanup]
public void Cleanup()
{
DependencyTableStore.Instance.IsDesktopHttpDiagnosticSourceActivated = false;
}
#endregion //TestInitiliaze

Expand Down

0 comments on commit 84bd166

Please sign in to comment.