@@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Builder
1414 /// <summary>
1515 /// Provides extension methods for <see cref="IEndpointRouteBuilder"/> to define HTTP API endpoints.
1616 /// </summary>
17- public static class MapActionEndpointRouteBuilderExtensions
17+ public static class MinmalActionEndpointRouteBuilderExtensions
1818 {
1919 // Avoid creating a new array every call
2020 private static readonly string [ ] GetVerb = new [ ] { "GET" } ;
@@ -30,7 +30,7 @@ public static class MapActionEndpointRouteBuilderExtensions
3030 /// <param name="pattern">The route pattern.</param>
3131 /// <param name="action">The delegate executed when the endpoint is matched.</param>
3232 /// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
33- public static MapActionEndpointConventionBuilder MapGet (
33+ public static MinimalActionEndpointConventionBuilder MapGet (
3434 this IEndpointRouteBuilder endpoints ,
3535 string pattern ,
3636 Delegate action )
@@ -46,7 +46,7 @@ public static MapActionEndpointConventionBuilder MapGet(
4646 /// <param name="pattern">The route pattern.</param>
4747 /// <param name="action">The delegate executed when the endpoint is matched.</param>
4848 /// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
49- public static MapActionEndpointConventionBuilder MapPost (
49+ public static MinimalActionEndpointConventionBuilder MapPost (
5050 this IEndpointRouteBuilder endpoints ,
5151 string pattern ,
5252 Delegate action )
@@ -62,7 +62,7 @@ public static MapActionEndpointConventionBuilder MapPost(
6262 /// <param name="pattern">The route pattern.</param>
6363 /// <param name="action">The delegate executed when the endpoint is matched.</param>
6464 /// <returns>A <see cref="IEndpointConventionBuilder"/> that canaction be used to further customize the endpoint.</returns>
65- public static MapActionEndpointConventionBuilder MapPut (
65+ public static MinimalActionEndpointConventionBuilder MapPut (
6666 this IEndpointRouteBuilder endpoints ,
6767 string pattern ,
6868 Delegate action )
@@ -78,7 +78,7 @@ public static MapActionEndpointConventionBuilder MapPut(
7878 /// <param name="pattern">The route pattern.</param>
7979 /// <param name="action">The delegate executed when the endpoint is matched.</param>
8080 /// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
81- public static MapActionEndpointConventionBuilder MapDelete (
81+ public static MinimalActionEndpointConventionBuilder MapDelete (
8282 this IEndpointRouteBuilder endpoints ,
8383 string pattern ,
8484 Delegate action )
@@ -95,7 +95,7 @@ public static MapActionEndpointConventionBuilder MapDelete(
9595 /// <param name="action">The delegate executed when the endpoint is matched.</param>
9696 /// <param name="httpMethods">HTTP methods that the endpoint will match.</param>
9797 /// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
98- public static MapActionEndpointConventionBuilder MapMethods (
98+ public static MinimalActionEndpointConventionBuilder MapMethods (
9999 this IEndpointRouteBuilder endpoints ,
100100 string pattern ,
101101 IEnumerable < string > httpMethods ,
@@ -120,7 +120,7 @@ public static MapActionEndpointConventionBuilder MapMethods(
120120 /// <param name="pattern">The route pattern.</param>
121121 /// <param name="action">The delegate executed when the endpoint is matched.</param>
122122 /// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
123- public static MapActionEndpointConventionBuilder Map (
123+ public static MinimalActionEndpointConventionBuilder Map (
124124 this IEndpointRouteBuilder endpoints ,
125125 string pattern ,
126126 Delegate action )
@@ -136,7 +136,7 @@ public static MapActionEndpointConventionBuilder Map(
136136 /// <param name="pattern">The route pattern.</param>
137137 /// <param name="action">The delegate executed when the endpoint is matched.</param>
138138 /// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
139- public static MapActionEndpointConventionBuilder Map (
139+ public static MinimalActionEndpointConventionBuilder Map (
140140 this IEndpointRouteBuilder endpoints ,
141141 RoutePattern pattern ,
142142 Delegate action )
@@ -185,7 +185,7 @@ public static MapActionEndpointConventionBuilder Map(
185185 endpoints . DataSources . Add ( dataSource ) ;
186186 }
187187
188- return new MapActionEndpointConventionBuilder ( dataSource . AddEndpointBuilder ( builder ) ) ;
188+ return new MinimalActionEndpointConventionBuilder ( dataSource . AddEndpointBuilder ( builder ) ) ;
189189 }
190190 }
191191}
0 commit comments