Package reference fixes.
Make common classes internal
This commit is contained in:
Родитель
63a7ed2fea
Коммит
7702b769b8
|
@ -5,12 +5,7 @@
|
||||||
/// These max limits are intentionally exaggerated to allow for unexpected responses, while still guarding against unreasonably large responses.
|
/// These max limits are intentionally exaggerated to allow for unexpected responses, while still guarding against unreasonably large responses.
|
||||||
/// Example: While a 32 character response may be expected, 50 characters may be permitted while a 10,000 character response would be unreasonable and malicious.
|
/// Example: While a 32 character response may be expected, 50 characters may be permitted while a 10,000 character response would be unreasonable and malicious.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if DEPENDENCY_COLLECTOR
|
internal static class InjectionGuardConstants
|
||||||
public
|
|
||||||
#else
|
|
||||||
internal
|
|
||||||
#endif
|
|
||||||
static class InjectionGuardConstants
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Max length of AppId allowed in response from Breeze.
|
/// Max length of AppId allowed in response from Breeze.
|
||||||
|
|
|
@ -8,12 +8,7 @@
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generic functions to perform common operations on a string.
|
/// Generic functions to perform common operations on a string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if DEPENDENCY_COLLECTOR
|
internal static class StringUtilities
|
||||||
public
|
|
||||||
#else
|
|
||||||
internal
|
|
||||||
#endif
|
|
||||||
static class StringUtilities
|
|
||||||
{
|
{
|
||||||
private static readonly uint[] Lookup32 = CreateLookup32();
|
private static readonly uint[] Lookup32 = CreateLookup32();
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,7 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("Not ready for public consumption.")]
|
[Obsolete("Not ready for public consumption.")]
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
#if DEPENDENCY_COLLECTOR
|
internal static class W3CActivityExtensions
|
||||||
public
|
|
||||||
#else
|
|
||||||
internal
|
|
||||||
#endif
|
|
||||||
static class W3CActivityExtensions
|
|
||||||
{
|
{
|
||||||
private static readonly Regex TraceIdRegex = new Regex("^[a-f0-9]{32}$", RegexOptions.Compiled);
|
private static readonly Regex TraceIdRegex = new Regex("^[a-f0-9]{32}$", RegexOptions.Compiled);
|
||||||
private static readonly Regex SpanIdRegex = new Regex("^[a-f0-9]{16}$", RegexOptions.Compiled);
|
private static readonly Regex SpanIdRegex = new Regex("^[a-f0-9]{16}$", RegexOptions.Compiled);
|
||||||
|
|
|
@ -8,12 +8,7 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("Not ready for public consumption.")]
|
[Obsolete("Not ready for public consumption.")]
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
#if DEPENDENCY_COLLECTOR
|
internal static class W3CConstants
|
||||||
public
|
|
||||||
#else
|
|
||||||
internal
|
|
||||||
#endif
|
|
||||||
static class W3CConstants
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// W3C traceparent header name.
|
/// W3C traceparent header name.
|
||||||
|
|
|
@ -17,12 +17,7 @@
|
||||||
[Obsolete("Not ready for public consumption.")]
|
[Obsolete("Not ready for public consumption.")]
|
||||||
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "TelemetryInitializers are intended to be instatiated by the framework when added to a config.")]
|
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "TelemetryInitializers are intended to be instatiated by the framework when added to a config.")]
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
#if DEPENDENCY_COLLECTOR
|
internal class W3COperationCorrelationTelemetryInitializer : ITelemetryInitializer
|
||||||
public
|
|
||||||
#else
|
|
||||||
internal
|
|
||||||
#endif
|
|
||||||
class W3COperationCorrelationTelemetryInitializer : ITelemetryInitializer
|
|
||||||
{
|
{
|
||||||
private const string RddDiagnosticSourcePrefix = "rdddsc";
|
private const string RddDiagnosticSourcePrefix = "rdddsc";
|
||||||
private const string SqlRemoteDependencyType = "SQL";
|
private const string SqlRemoteDependencyType = "SQL";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="..\..\Product.props" />
|
<Import Project="..\..\Product.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -46,6 +46,10 @@
|
||||||
<Content Include="net45\*" />
|
<Content Include="net45\*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\WindowsServer\WindowsServer\WindowsServer.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!--Framework References-->
|
<!--Framework References-->
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
|
|
@ -36,11 +36,6 @@
|
||||||
<!--Common Dependencies-->
|
<!--Common Dependencies-->
|
||||||
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.9.0-beta1" />
|
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.9.0-beta1" />
|
||||||
<PackageReference Include="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" Version="2.9.0-beta1" />
|
<PackageReference Include="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" Version="2.9.0-beta1" />
|
||||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.9.0-beta1">
|
|
||||||
<!--This is needed only in runtime as no code in WindowsServer package has compile time dependency on DependencyCollector-->
|
|
||||||
<IncludeAssets>runtime</IncludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="Microsoft.ApplicationInsights.PerfCounterCollector" Version="2.9.0-beta1" />
|
|
||||||
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.5.0" />
|
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -62,6 +57,11 @@
|
||||||
<Reference Include="System.Management" />
|
<Reference Include="System.Management" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\DependencyCollector\DependencyCollector\DependencyCollector.csproj" />
|
||||||
|
<ProjectReference Include="..\..\PerformanceCollector\PerformanceCollector\Perf.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<Import Project="..\WindowsServer.Shared\WindowsServer.Shared.projitems" Label="Shared" />
|
<Import Project="..\WindowsServer.Shared\WindowsServer.Shared.projitems" Label="Shared" />
|
||||||
<Import Project="..\..\Common\Common.projitems" Label="Shared" />
|
<Import Project="..\..\Common\Common.projitems" Label="Shared" />
|
||||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'Common.targets'))\Common.targets" />
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'Common.targets'))\Common.targets" />
|
||||||
|
|
Загрузка…
Ссылка в новой задаче