2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System . Diagnostics . CodeAnalysis ;
5
+ using System . Runtime . CompilerServices ;
5
6
using Microsoft . AspNetCore . Http ;
6
7
using Microsoft . AspNetCore . Routing ;
7
8
using Microsoft . AspNetCore . Routing . Patterns ;
@@ -227,6 +228,7 @@ static RequestDelegateResult CreateHandlerRequestDelegate(Delegate handler, Requ
227
228
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
228
229
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
229
230
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
231
+ [ OverloadResolutionPriority ( 1 ) ]
230
232
public static RouteHandlerBuilder MapGet (
231
233
this IEndpointRouteBuilder endpoints ,
232
234
[ StringSyntax ( "Route" ) ] string pattern ,
@@ -245,6 +247,7 @@ public static RouteHandlerBuilder MapGet(
245
247
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
246
248
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
247
249
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
250
+ [ OverloadResolutionPriority ( 1 ) ]
248
251
public static RouteHandlerBuilder MapPost (
249
252
this IEndpointRouteBuilder endpoints ,
250
253
[ StringSyntax ( "Route" ) ] string pattern ,
@@ -263,6 +266,7 @@ public static RouteHandlerBuilder MapPost(
263
266
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
264
267
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
265
268
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
269
+ [ OverloadResolutionPriority ( 1 ) ]
266
270
public static RouteHandlerBuilder MapPut (
267
271
this IEndpointRouteBuilder endpoints ,
268
272
[ StringSyntax ( "Route" ) ] string pattern ,
@@ -281,6 +285,7 @@ public static RouteHandlerBuilder MapPut(
281
285
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
282
286
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
283
287
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
288
+ [ OverloadResolutionPriority ( 1 ) ]
284
289
public static RouteHandlerBuilder MapDelete (
285
290
this IEndpointRouteBuilder endpoints ,
286
291
[ StringSyntax ( "Route" ) ] string pattern ,
@@ -299,6 +304,7 @@ public static RouteHandlerBuilder MapDelete(
299
304
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
300
305
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
301
306
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
307
+ [ OverloadResolutionPriority ( 1 ) ]
302
308
public static RouteHandlerBuilder MapPatch (
303
309
this IEndpointRouteBuilder endpoints ,
304
310
[ StringSyntax ( "Route" ) ] string pattern ,
@@ -338,6 +344,7 @@ public static RouteHandlerBuilder MapMethods(
338
344
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
339
345
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
340
346
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
347
+ [ OverloadResolutionPriority ( 1 ) ]
341
348
public static RouteHandlerBuilder Map (
342
349
this IEndpointRouteBuilder endpoints ,
343
350
[ StringSyntax ( "Route" ) ] string pattern ,
@@ -413,6 +420,7 @@ public static RouteHandlerBuilder MapFallback(this IEndpointRouteBuilder endpoin
413
420
/// </remarks>
414
421
[ RequiresUnreferencedCode ( MapEndpointUnreferencedCodeWarning ) ]
415
422
[ RequiresDynamicCode ( MapEndpointDynamicCodeWarning ) ]
423
+ [ OverloadResolutionPriority ( 1 ) ]
416
424
public static RouteHandlerBuilder MapFallback (
417
425
this IEndpointRouteBuilder endpoints ,
418
426
[ StringSyntax ( "Route" ) ] string pattern ,
0 commit comments