Conditionally change namespace for common classes to avoid ambiguity

This commit is contained in:
Cijo Thomas 2018-11-26 14:43:43 -08:00
Родитель 5cdea79890
Коммит 9bfa311fa1
5 изменённых файлов: 25 добавлений и 4 удалений

Просмотреть файл

@ -4,6 +4,11 @@
using System.Globalization; using System.Globalization;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
#if DEPENDENCY_COLLECTOR
using Microsoft.ApplicationInsights.Common;
#else
using Microsoft.ApplicationInsights.Common.Internal;
#endif
/// <summary> /// <summary>
/// Generic functions that can be used to get and set Http headers. /// Generic functions that can be used to get and set Http headers.

Просмотреть файл

@ -1,4 +1,8 @@
namespace Microsoft.ApplicationInsights.Common #if DEPENDENCY_COLLECTOR
namespace Microsoft.ApplicationInsights.Common
#else
namespace Microsoft.ApplicationInsights.Common.Internal
#endif
{ {
/// <summary> /// <summary>
/// These values are listed to guard against malicious injections by limiting the max size allowed in an HTTP Response. /// These values are listed to guard against malicious injections by limiting the max size allowed in an HTTP Response.

Просмотреть файл

@ -1,4 +1,8 @@
namespace Microsoft.ApplicationInsights.Common #if DEPENDENCY_COLLECTOR
namespace Microsoft.ApplicationInsights.Common
#else
namespace Microsoft.ApplicationInsights.Common.Internal
#endif
{ {
using System; using System;
using System.Diagnostics; using System.Diagnostics;

Просмотреть файл

@ -10,7 +10,11 @@
using System.Globalization; using System.Globalization;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
#if DEPENDENCY_COLLECTOR
using Microsoft.ApplicationInsights.Common; using Microsoft.ApplicationInsights.Common;
#else
using Microsoft.ApplicationInsights.Common.Internal;
#endif
/// <summary> /// <summary>
/// Extends Activity to support W3C distributed tracing standard. /// Extends Activity to support W3C distributed tracing standard.

Просмотреть файл

@ -9,11 +9,15 @@ namespace Microsoft.ApplicationInsights.W3C.Internal
using System.Diagnostics; using System.Diagnostics;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Linq; using System.Linq;
using Microsoft.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Common;
using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility; using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation; using Microsoft.ApplicationInsights.Extensibility.Implementation;
#if DEPENDENCY_COLLECTOR
using Microsoft.ApplicationInsights.Common;
#else
using Microsoft.ApplicationInsights.Common.Internal;
#endif
/// <summary> /// <summary>
/// Telemetry Initializer that sets correlation ids for W3C. /// Telemetry Initializer that sets correlation ids for W3C.