Skip to content

Commit 713cad7

Browse files
committed
DelegateEndpointConventionBuilder -> RouteHandlerConventionBuilder
1 parent d5d5cb7 commit 713cad7

File tree

4 files changed

+70
-71
lines changed

4 files changed

+70
-71
lines changed

src/Http/Routing/src/Builder/DelegateEndpointConventionBuilder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ namespace Microsoft.AspNetCore.Builder
99
/// <summary>
1010
/// Builds conventions that will be used for customization of MapAction <see cref="EndpointBuilder"/> instances.
1111
/// </summary>
12-
public sealed class DelegateEndpointConventionBuilder : IEndpointConventionBuilder
12+
public sealed class RouteHandlerConventionBuilder : IEndpointConventionBuilder
1313
{
1414
private readonly IEnumerable<IEndpointConventionBuilder> _endpointConventionBuilders;
1515

1616
/// <summary>
17-
/// Instantiates a new <see cref="DelegateEndpointConventionBuilder" /> given a single
17+
/// Instantiates a new <see cref="RouteHandlerConventionBuilder" /> given a single
1818
/// <see cref="IEndpointConventionBuilder" />.
1919
/// </summary>
2020
/// <param name="endpointConventionBuilder">The <see cref="IEndpointConventionBuilder" /> to instantiate with.</param>
21-
internal DelegateEndpointConventionBuilder(IEndpointConventionBuilder endpointConventionBuilder)
21+
internal RouteHandlerConventionBuilder(IEndpointConventionBuilder endpointConventionBuilder)
2222
{
2323
_endpointConventionBuilders = new List<IEndpointConventionBuilder>() { endpointConventionBuilder };
2424
}
2525

2626
/// <summary>
27-
/// Instantiates a new <see cref="DelegateEndpointConventionBuilder" /> given multiple
27+
/// Instantiates a new <see cref="RouteHandlerConventionBuilder" /> given multiple
2828
/// <see cref="IEndpointConventionBuilder" /> instances.
2929
/// </summary>
3030
/// <param name="endpointConventionBuilders">A list of <see cref="IEndpointConventionBuilder" /> instances.</param>
31-
public DelegateEndpointConventionBuilder(IEnumerable<IEndpointConventionBuilder> endpointConventionBuilders)
31+
public RouteHandlerConventionBuilder(IEnumerable<IEndpointConventionBuilder> endpointConventionBuilders)
3232
{
3333
_endpointConventionBuilders = endpointConventionBuilders;
3434
}

src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public static IEndpointConventionBuilder Map(
199199
/// <param name="pattern">The route pattern.</param>
200200
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
201201
/// <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(
203203
this IEndpointRouteBuilder endpoints,
204204
string pattern,
205205
Delegate handler)
@@ -215,7 +215,7 @@ public static DelegateEndpointConventionBuilder MapGet(
215215
/// <param name="pattern">The route pattern.</param>
216216
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
217217
/// <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(
219219
this IEndpointRouteBuilder endpoints,
220220
string pattern,
221221
Delegate handler)
@@ -231,7 +231,7 @@ public static DelegateEndpointConventionBuilder MapPost(
231231
/// <param name="pattern">The route pattern.</param>
232232
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
233233
/// <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(
235235
this IEndpointRouteBuilder endpoints,
236236
string pattern,
237237
Delegate handler)
@@ -247,7 +247,7 @@ public static DelegateEndpointConventionBuilder MapPut(
247247
/// <param name="pattern">The route pattern.</param>
248248
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
249249
/// <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(
251251
this IEndpointRouteBuilder endpoints,
252252
string pattern,
253253
Delegate handler)
@@ -264,7 +264,7 @@ public static DelegateEndpointConventionBuilder MapDelete(
264264
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
265265
/// <param name="httpMethods">HTTP methods that the endpoint will match.</param>
266266
/// <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(
268268
this IEndpointRouteBuilder endpoints,
269269
string pattern,
270270
IEnumerable<string> httpMethods,
@@ -311,7 +311,7 @@ static bool ShouldDisableInferredBody(string method)
311311
/// <param name="pattern">The route pattern.</param>
312312
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
313313
/// <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(
315315
this IEndpointRouteBuilder endpoints,
316316
string pattern,
317317
Delegate handler)
@@ -327,7 +327,7 @@ public static DelegateEndpointConventionBuilder Map(
327327
/// <param name="pattern">The route pattern.</param>
328328
/// <param name="handler">The delegate executed when the endpoint is matched.</param>
329329
/// <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(
331331
this IEndpointRouteBuilder endpoints,
332332
RoutePattern pattern,
333333
Delegate handler)
@@ -354,7 +354,7 @@ public static DelegateEndpointConventionBuilder Map(
354354
/// <c>{*path:nonfile}</c>. The order of the registered endpoint will be <c>int.MaxValue</c>.
355355
/// </para>
356356
/// </remarks>
357-
public static DelegateEndpointConventionBuilder MapFallback(this IEndpointRouteBuilder endpoints, Delegate handler)
357+
public static RouteHandlerConventionBuilder MapFallback(this IEndpointRouteBuilder endpoints, Delegate handler)
358358
{
359359
if (endpoints == null)
360360
{
@@ -390,7 +390,7 @@ public static DelegateEndpointConventionBuilder MapFallback(this IEndpointRouteB
390390
/// to exclude requests for static files.
391391
/// </para>
392392
/// </remarks>
393-
public static DelegateEndpointConventionBuilder MapFallback(
393+
public static RouteHandlerConventionBuilder MapFallback(
394394
this IEndpointRouteBuilder endpoints,
395395
string pattern,
396396
Delegate handler)
@@ -416,7 +416,7 @@ public static DelegateEndpointConventionBuilder MapFallback(
416416
return conventionBuilder;
417417
}
418418

419-
private static DelegateEndpointConventionBuilder Map(
419+
private static RouteHandlerConventionBuilder Map(
420420
this IEndpointRouteBuilder endpoints,
421421
RoutePattern pattern,
422422
Delegate handler,
@@ -506,7 +506,7 @@ private static DelegateEndpointConventionBuilder Map(
506506
endpoints.DataSources.Add(dataSource);
507507
}
508508

509-
return new DelegateEndpointConventionBuilder(dataSource.AddEndpointBuilder(builder));
509+
return new RouteHandlerConventionBuilder(dataSource.AddEndpointBuilder(builder));
510510
}
511511
}
512512
}

0 commit comments

Comments
 (0)