Skip to content
Merged
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
5 changes: 3 additions & 2 deletions src/Http/Routing/src/Builder/RouteHandlerServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
Expand Down Expand Up @@ -32,7 +33,7 @@ public static class RouteHandlerServices
/// <returns>The <see cref="RouteHandlerBuilder"/>>.</returns>
public static RouteHandlerBuilder Map(
IEndpointRouteBuilder endpoints,
string pattern,
[StringSyntax("Route")] string pattern,
Delegate handler,
IEnumerable<string>? httpMethods,
Func<MethodInfo, RequestDelegateFactoryOptions?, RequestDelegateMetadataResult> populateMetadata,
Expand Down Expand Up @@ -62,7 +63,7 @@ public static RouteHandlerBuilder Map(
/// <returns>The <see cref="RouteHandlerBuilder"/>>.</returns>
public static RouteHandlerBuilder Map(
IEndpointRouteBuilder endpoints,
string pattern,
[StringSyntax("Route")] string pattern,
Delegate handler,
IEnumerable<string>? httpMethods,
Func<MethodInfo, RequestDelegateFactoryOptions?, RequestDelegateMetadataResult> populateMetadata,
Expand Down
Loading