Skip to content

Commit 3203966

Browse files
Sergey KanzhelevSergey Kanzhelev
authored andcommitted
mention source code
1 parent e659715 commit 3203966

File tree

9 files changed

+22
-15
lines changed

9 files changed

+22
-15
lines changed

src/Microsoft.AspNet.TelemetryCorrelation/Internal/BaseHeaderParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Microsoft.AspNet.TelemetryCorrelation
55
{
6+
// Adoptation of code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/BaseHeaderParser.cs
67
internal abstract class BaseHeaderParser<T> : HttpHeaderParser<T>
78
{
89
protected BaseHeaderParser(bool supportsMultipleValues)

src/Microsoft.AspNet.TelemetryCorrelation/Internal/GenericHeaderParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Microsoft.AspNet.TelemetryCorrelation
77
{
8+
// Adoptation of code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/GenericHeaderParser.cs
89
internal sealed class GenericHeaderParser<T> : BaseHeaderParser<T>
910
{
1011
private GetParsedValueLengthDelegate getParsedValueLength;

src/Microsoft.AspNet.TelemetryCorrelation/Internal/HeaderUtilities.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Microsoft.AspNet.TelemetryCorrelation
77
{
8+
// Adoption of the code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/HeaderUtilities.cs
89
internal static class HeaderUtilities
910
{
1011
internal static int GetNextNonEmptyOrWhitespaceIndex(

src/Microsoft.AspNet.TelemetryCorrelation/Internal/HttpHeaderParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Microsoft.AspNet.TelemetryCorrelation
55
{
6+
// Adoptation of code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/HttpHeaderParser.cs
67
internal abstract class HttpHeaderParser<T>
78
{
89
private bool supportsMultipleValues;

src/Microsoft.AspNet.TelemetryCorrelation/Internal/HttpParseResult.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Microsoft.AspNet.TelemetryCorrelation
55
{
6+
// Adoptation of code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/HttpParseResult.cs
67
internal enum HttpParseResult
78
{
89
/// <summary>

src/Microsoft.AspNet.TelemetryCorrelation/Internal/HttpRuleParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.Diagnostics.Contracts;
5-
using System.Text;
65

76
namespace Microsoft.AspNet.TelemetryCorrelation
87
{
8+
// Adoptation of code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/HttpRuleParser.cs
99
internal static class HttpRuleParser
1010
{
1111
internal const char CR = '\r';

src/Microsoft.AspNet.TelemetryCorrelation/Internal/NameValueHeaderValue.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
namespace Microsoft.AspNet.TelemetryCorrelation
77
{
8-
// According to the RFC, in places where a "parameter" is required, the value is mandatory
8+
// Adoptation of code from https://github.com/aspnet/HttpAbstractions/blob/07d115400e4f8c7a66ba239f230805f03a14ee3d/src/Microsoft.Net.Http.Headers/NameValueHeaderValue.cs
9+
10+
// According to the RFC, in places where a "parameter" is required, the value is mandatory
911
// (e.g. Media-Type, Accept). However, we don't introduce a dedicated type for it. So NameValueHeaderValue supports
1012
// name-only values in addition to name/value pairs.
1113
internal class NameValueHeaderValue

test/Microsoft.AspNet.TelemetryCorrelation.Tests/ActivityExtensionsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.AspNet.TelemetryCorrelation.Tests
1212
using System.Linq;
1313
using Xunit;
1414

15-
public class ActivityExtensionsTest
15+
public class NameValueHeaderValueTest
1616
{
1717
private const string TestActivityName = "Activity.Test";
1818

test/Microsoft.AspNet.TelemetryCorrelation.Tests/Microsoft.AspNet.TelemetryCorrelation.Tests.csproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@
4343
</ItemGroup>
4444
<ItemGroup>
4545
<PackageReference Include="Microsoft.Web.Xdt" Version="2.1.1" />
46-
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.5.0"/>
47-
<PackageReference Include="System.Reactive.Core" Version="3.1.1"/>
48-
<PackageReference Include="System.Reactive.Interfaces" Version="3.1.1"/>
49-
<PackageReference Include="xunit" Version="2.3.1"/>
50-
<PackageReference Include="xunit.abstractions" Version="2.0.1"/>
51-
<PackageReference Include="xunit.analyzers" Version="0.7.0"/>
52-
<PackageReference Include="xunit.assert" Version="2.3.1"/>
53-
<PackageReference Include="xunit.core" Version="2.3.1"/>
54-
<PackageReference Include="xunit.extensibility.core" Version="2.3.1"/>
55-
<PackageReference Include="xunit.extensibility.execution" Version="2.3.1"/>
56-
<PackageReference Include="xunit.runner.msbuild" Version="2.2.0"/>
46+
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.5.0" />
47+
<PackageReference Include="System.Reactive.Core" Version="3.1.1" />
48+
<PackageReference Include="System.Reactive.Interfaces" Version="3.1.1" />
49+
<PackageReference Include="xunit" Version="2.3.1" />
50+
<PackageReference Include="xunit.abstractions" Version="2.0.1" />
51+
<PackageReference Include="xunit.analyzers" Version="0.7.0" />
52+
<PackageReference Include="xunit.assert" Version="2.3.1" />
53+
<PackageReference Include="xunit.core" Version="2.3.1" />
54+
<PackageReference Include="xunit.extensibility.core" Version="2.3.1" />
55+
<PackageReference Include="xunit.extensibility.execution" Version="2.3.1" />
56+
<PackageReference Include="xunit.runner.msbuild" Version="2.2.0" />
5757

58-
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1"/>
58+
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
5959

6060
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
6161
<PrivateAssets>All</PrivateAssets>

0 commit comments

Comments
 (0)