Skip to content

Commit fcb9f13

Browse files
authored
Applicaion -> Application (#131)
1 parent 717472a commit fcb9f13

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
1-
//-----------------------------------------------------------------------------
2-
// <copyright file="AWSXRayMiddlewareExtensions.cs" company="Amazon.com">
3-
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4-
//
5-
// Licensed under the Apache License, Version 2.0 (the "License").
6-
// You may not use this file except in compliance with the License.
7-
// A copy of the License is located at
8-
//
9-
// http://aws.amazon.com/apache2.0
10-
//
11-
// or in the "license" file accompanying this file. This file is distributed
12-
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13-
// express or implied. See the License for the specific language governing
14-
// permissions and limitations under the License.
15-
// </copyright>
16-
//-----------------------------------------------------------------------------
17-
using Amazon.XRay.Recorder.Core.Strategies;
1+
//-----------------------------------------------------------------------------
2+
// <copyright file="AWSXRayMiddlewareExtensions.cs" company="Amazon.com">
3+
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
//
5+
// Licensed under the Apache License, Version 2.0 (the "License").
6+
// You may not use this file except in compliance with the License.
7+
// A copy of the License is located at
8+
//
9+
// http://aws.amazon.com/apache2.0
10+
//
11+
// or in the "license" file accompanying this file. This file is distributed
12+
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13+
// express or implied. See the License for the specific language governing
14+
// permissions and limitations under the License.
15+
// </copyright>
16+
//-----------------------------------------------------------------------------
17+
using Amazon.XRay.Recorder.Core.Strategies;
1818
using Amazon.XRay.Recorder.Handlers.AspNetCore.Internal;
19-
using Microsoft.Extensions.Configuration;
20-
21-
namespace Microsoft.AspNetCore.Builder
22-
{
23-
/// <summary>
24-
/// The Middleware Extension to intercept HTTP request for ASP.NET Core.
25-
/// For each request, <see cref="AWSXRayMiddleware"/> will try to parse trace header
26-
/// from HTTP request header, and determine if tracing is enabled. If enabled, it will
27-
/// start a new segment before invoking inner handler. And end the segment before it returns
28-
/// the response to outer handler.
29-
/// </summary>
30-
public static class AWSXRayMiddlewareExtensions
31-
{
19+
using Microsoft.Extensions.Configuration;
20+
21+
namespace Microsoft.AspNetCore.Builder
22+
{
23+
/// <summary>
24+
/// The Middleware Extension to intercept HTTP request for ASP.NET Core.
25+
/// For each request, <see cref="AWSXRayMiddleware"/> will try to parse trace header
26+
/// from HTTP request header, and determine if tracing is enabled. If enabled, it will
27+
/// start a new segment before invoking inner handler. And end the segment before it returns
28+
/// the response to outer handler.
29+
/// </summary>
30+
public static class AWSXRayMiddlewareExtensions
31+
{
3232
/// <summary>
33-
/// Adds <see cref="AWSXRayMiddleware"/> to the applicaion's request pipeline.
33+
/// Adds <see cref="AWSXRayMiddleware"/> to the application's request pipeline.
3434
/// </summary>
3535
/// <param name="builder">Instance of <see cref="IApplicationBuilder"/>.</param>
3636
/// <param name="segmentName">Segment name.</param>
37-
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
38-
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, string segmentName)
39-
{
40-
return builder.UseMiddleware<AWSXRayMiddleware>(segmentName);
41-
}
42-
37+
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
38+
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, string segmentName)
39+
{
40+
return builder.UseMiddleware<AWSXRayMiddleware>(segmentName);
41+
}
42+
4343
/// <summary>
44-
/// Adds <see cref="AWSXRayMiddleware"/> to the applicaion's request pipeline.
44+
/// Adds <see cref="AWSXRayMiddleware"/> to the application's request pipeline.
4545
/// </summary>
4646
/// <param name="builder">Instance of <see cref="IApplicationBuilder"/></param>
4747
/// <param name="segmentName">Segment name.</param>
4848
/// <param name="configuration"></param>
49-
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
50-
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, string segmentName, IConfiguration configuration)
51-
{
52-
return builder.UseMiddleware<AWSXRayMiddleware>(segmentName, configuration);
53-
}
54-
49+
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
50+
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, string segmentName, IConfiguration configuration)
51+
{
52+
return builder.UseMiddleware<AWSXRayMiddleware>(segmentName, configuration);
53+
}
54+
5555
/// <summary>
56-
/// Adds <see cref="AWSXRayMiddleware"/> to the applicaion's request pipeline.
56+
/// Adds <see cref="AWSXRayMiddleware"/> to the application's request pipeline.
5757
/// </summary>
5858
/// <param name="builder">Instance of <see cref="IApplicationBuilder"/>.</param>
5959
/// <param name="segmentNamingStrategy"></param>
60-
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
61-
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, SegmentNamingStrategy segmentNamingStrategy)
62-
{
63-
return builder.UseMiddleware<AWSXRayMiddleware>(segmentNamingStrategy);
64-
}
65-
60+
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
61+
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, SegmentNamingStrategy segmentNamingStrategy)
62+
{
63+
return builder.UseMiddleware<AWSXRayMiddleware>(segmentNamingStrategy);
64+
}
65+
6666
/// <summary>
67-
/// Adds <see cref="AWSXRayMiddleware"/> to the applicaion's request pipeline.
67+
/// Adds <see cref="AWSXRayMiddleware"/> to the application's request pipeline.
6868
/// </summary>
6969
/// <param name="builder">Instance of <see cref="IApplicationBuilder"/>.</param>
7070
/// <param name="segmentNamingStrategy"></param>
7171
/// <param name="configuration"></param>
72-
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
73-
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, SegmentNamingStrategy segmentNamingStrategy, IConfiguration configuration)
74-
{
75-
return builder.UseMiddleware<AWSXRayMiddleware>(segmentNamingStrategy, configuration);
76-
}
77-
}
78-
}
72+
/// <returns>Instance of <see cref="IApplicationBuilder"/> instrumented with X-Ray middleware.</returns>
73+
public static IApplicationBuilder UseXRay(this IApplicationBuilder builder, SegmentNamingStrategy segmentNamingStrategy, IConfiguration configuration)
74+
{
75+
return builder.UseMiddleware<AWSXRayMiddleware>(segmentNamingStrategy, configuration);
76+
}
77+
}
78+
}

0 commit comments

Comments
 (0)