@@ -199,7 +199,7 @@ public static IEndpointConventionBuilder Map(
199
199
/// <param name="pattern">The route pattern.</param>
200
200
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
201
201
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
202
- public static DelegateEndpointConventionBuilder MapGet (
202
+ public static RouteHandlerConventionBuilder MapGet (
203
203
this IEndpointRouteBuilder endpoints ,
204
204
string pattern ,
205
205
Delegate handler )
@@ -215,7 +215,7 @@ public static DelegateEndpointConventionBuilder MapGet(
215
215
/// <param name="pattern">The route pattern.</param>
216
216
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
217
217
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
218
- public static DelegateEndpointConventionBuilder MapPost (
218
+ public static RouteHandlerConventionBuilder MapPost (
219
219
this IEndpointRouteBuilder endpoints ,
220
220
string pattern ,
221
221
Delegate handler )
@@ -231,7 +231,7 @@ public static DelegateEndpointConventionBuilder MapPost(
231
231
/// <param name="pattern">The route pattern.</param>
232
232
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
233
233
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
234
- public static DelegateEndpointConventionBuilder MapPut (
234
+ public static RouteHandlerConventionBuilder MapPut (
235
235
this IEndpointRouteBuilder endpoints ,
236
236
string pattern ,
237
237
Delegate handler )
@@ -247,7 +247,7 @@ public static DelegateEndpointConventionBuilder MapPut(
247
247
/// <param name="pattern">The route pattern.</param>
248
248
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
249
249
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
250
- public static DelegateEndpointConventionBuilder MapDelete (
250
+ public static RouteHandlerConventionBuilder MapDelete (
251
251
this IEndpointRouteBuilder endpoints ,
252
252
string pattern ,
253
253
Delegate handler )
@@ -264,7 +264,7 @@ public static DelegateEndpointConventionBuilder MapDelete(
264
264
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
265
265
/// <param name="httpMethods">HTTP methods that the endpoint will match.</param>
266
266
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
267
- public static DelegateEndpointConventionBuilder MapMethods (
267
+ public static RouteHandlerConventionBuilder MapMethods (
268
268
this IEndpointRouteBuilder endpoints ,
269
269
string pattern ,
270
270
IEnumerable < string > httpMethods ,
@@ -311,7 +311,7 @@ static bool ShouldDisableInferredBody(string method)
311
311
/// <param name="pattern">The route pattern.</param>
312
312
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
313
313
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
314
- public static DelegateEndpointConventionBuilder Map (
314
+ public static RouteHandlerConventionBuilder Map (
315
315
this IEndpointRouteBuilder endpoints ,
316
316
string pattern ,
317
317
Delegate handler )
@@ -327,7 +327,7 @@ public static DelegateEndpointConventionBuilder Map(
327
327
/// <param name="pattern">The route pattern.</param>
328
328
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
329
329
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
330
- public static DelegateEndpointConventionBuilder Map (
330
+ public static RouteHandlerConventionBuilder Map (
331
331
this IEndpointRouteBuilder endpoints ,
332
332
RoutePattern pattern ,
333
333
Delegate handler )
@@ -354,7 +354,7 @@ public static DelegateEndpointConventionBuilder Map(
354
354
/// <c>{*path:nonfile}</c>. The order of the registered endpoint will be <c>int.MaxValue</c>.
355
355
/// </para>
356
356
/// </remarks>
357
- public static DelegateEndpointConventionBuilder MapFallback ( this IEndpointRouteBuilder endpoints , Delegate handler )
357
+ public static RouteHandlerConventionBuilder MapFallback ( this IEndpointRouteBuilder endpoints , Delegate handler )
358
358
{
359
359
if ( endpoints == null )
360
360
{
@@ -390,7 +390,7 @@ public static DelegateEndpointConventionBuilder MapFallback(this IEndpointRouteB
390
390
/// to exclude requests for static files.
391
391
/// </para>
392
392
/// </remarks>
393
- public static DelegateEndpointConventionBuilder MapFallback (
393
+ public static RouteHandlerConventionBuilder MapFallback (
394
394
this IEndpointRouteBuilder endpoints ,
395
395
string pattern ,
396
396
Delegate handler )
@@ -416,7 +416,7 @@ public static DelegateEndpointConventionBuilder MapFallback(
416
416
return conventionBuilder ;
417
417
}
418
418
419
- private static DelegateEndpointConventionBuilder Map (
419
+ private static RouteHandlerConventionBuilder Map (
420
420
this IEndpointRouteBuilder endpoints ,
421
421
RoutePattern pattern ,
422
422
Delegate handler ,
@@ -506,7 +506,7 @@ private static DelegateEndpointConventionBuilder Map(
506
506
endpoints . DataSources . Add ( dataSource ) ;
507
507
}
508
508
509
- return new DelegateEndpointConventionBuilder ( dataSource . AddEndpointBuilder ( builder ) ) ;
509
+ return new RouteHandlerConventionBuilder ( dataSource . AddEndpointBuilder ( builder ) ) ;
510
510
}
511
511
}
512
512
}
0 commit comments