Skip to content

Fix metadata typos #62771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Http/Routing/src/HostAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Microsoft.AspNetCore.Routing;

/// <summary>
/// Attribute for providing host metdata that is used during routing.
/// Attribute for providing host metadata that is used during routing.
/// </summary>
[DebuggerDisplay("{ToString(),nq}")]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public void MapEndpoint_PrecedenceOfMetadata_BuilderMetadataReturned()
var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance));

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

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

[HttpMethod("ATTRIBUTE")]
private static Task HandleHttpMetdata(HttpContext context) => Task.CompletedTask;
private static Task HandleHttpMetadata(HttpContext context) => Task.CompletedTask;

private class HttpMethodAttribute : Attribute, IHttpMethodMetadata
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Microsoft.AspNetCore.Cors.Infrastructure;

/// <summary>
/// An interface which can be used to identify a type which provides metdata to disable cors for a resource.
/// An interface which can be used to identify a type which provides metadata to disable cors for a resource.
/// </summary>
public interface IDisableCorsAttribute : ICorsMetadata
{
Expand Down
2 changes: 1 addition & 1 deletion src/Shared/StackTrace/StackFrame/StackTraceHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static IList<StackFrameInfo> GetFrames(Exception exception, out Aggregate
var method = frame.GetMethod();

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