Skip to content

Commit 0791d1c

Browse files
Fix metadata typos (#62771)
1 parent 0047069 commit 0791d1c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Http/Routing/src/HostAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Microsoft.AspNetCore.Routing;
99

1010
/// <summary>
11-
/// Attribute for providing host metdata that is used during routing.
11+
/// Attribute for providing host metadata that is used during routing.
1212
/// </summary>
1313
[DebuggerDisplay("{ToString(),nq}")]
1414
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]

src/Http/Routing/test/UnitTests/Builder/RequestDelegateEndpointRouteBuilderExtensionsTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public void MapEndpoint_PrecedenceOfMetadata_BuilderMetadataReturned()
402402
var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance));
403403

404404
// Act
405-
var endpointBuilder = builder.MapMethods("/", new[] { "METHOD" }, HandleHttpMetdata);
405+
var endpointBuilder = builder.MapMethods("/", new[] { "METHOD" }, HandleHttpMetadata);
406406
endpointBuilder.WithMetadata(new HttpMethodMetadata(new[] { "BUILDER" }));
407407

408408
// Assert
@@ -526,7 +526,7 @@ public void MapEndpoint_Filter()
526526
private static Task Handle(HttpContext context) => Task.CompletedTask;
527527

528528
[HttpMethod("ATTRIBUTE")]
529-
private static Task HandleHttpMetdata(HttpContext context) => Task.CompletedTask;
529+
private static Task HandleHttpMetadata(HttpContext context) => Task.CompletedTask;
530530

531531
private class HttpMethodAttribute : Attribute, IHttpMethodMetadata
532532
{

src/Middleware/CORS/src/Infrastructure/IDisableCorsAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Microsoft.AspNetCore.Cors.Infrastructure;
55

66
/// <summary>
7-
/// An interface which can be used to identify a type which provides metdata to disable cors for a resource.
7+
/// An interface which can be used to identify a type which provides metadata to disable cors for a resource.
88
/// </summary>
99
public interface IDisableCorsAttribute : ICorsMetadata
1010
{

src/Shared/StackTrace/StackFrame/StackTraceHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static IList<StackFrameInfo> GetFrames(Exception exception, out Aggregate
4646
var method = frame.GetMethod();
4747

4848
// MethodInfo should always be available for methods in the stack, but double check for null here.
49-
// Apps with trimming enabled may remove some metdata. Better to be safe than sorry.
49+
// Apps with trimming enabled may remove some metadata. Better to be safe than sorry.
5050
if (method == null)
5151
{
5252
continue;

0 commit comments

Comments
 (0)