@@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Builder
14
14
/// <summary>
15
15
/// Provides extension methods for <see cref="IEndpointRouteBuilder"/> to define HTTP API endpoints.
16
16
/// </summary>
17
- public static class MapActionEndpointRouteBuilderExtensions
17
+ public static class MinmalActionEndpointRouteBuilderExtensions
18
18
{
19
19
// Avoid creating a new array every call
20
20
private static readonly string [ ] GetVerb = new [ ] { "GET" } ;
@@ -30,7 +30,7 @@ public static class MapActionEndpointRouteBuilderExtensions
30
30
/// <param name="pattern">The route pattern.</param>
31
31
/// <param name="action">The delegate executed when the endpoint is matched.</param>
32
32
/// <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 (
34
34
this IEndpointRouteBuilder endpoints ,
35
35
string pattern ,
36
36
Delegate action )
@@ -46,7 +46,7 @@ public static MapActionEndpointConventionBuilder MapGet(
46
46
/// <param name="pattern">The route pattern.</param>
47
47
/// <param name="action">The delegate executed when the endpoint is matched.</param>
48
48
/// <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 (
50
50
this IEndpointRouteBuilder endpoints ,
51
51
string pattern ,
52
52
Delegate action )
@@ -62,7 +62,7 @@ public static MapActionEndpointConventionBuilder MapPost(
62
62
/// <param name="pattern">The route pattern.</param>
63
63
/// <param name="action">The delegate executed when the endpoint is matched.</param>
64
64
/// <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 (
66
66
this IEndpointRouteBuilder endpoints ,
67
67
string pattern ,
68
68
Delegate action )
@@ -78,7 +78,7 @@ public static MapActionEndpointConventionBuilder MapPut(
78
78
/// <param name="pattern">The route pattern.</param>
79
79
/// <param name="action">The delegate executed when the endpoint is matched.</param>
80
80
/// <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 (
82
82
this IEndpointRouteBuilder endpoints ,
83
83
string pattern ,
84
84
Delegate action )
@@ -95,7 +95,7 @@ public static MapActionEndpointConventionBuilder MapDelete(
95
95
/// <param name="action">The delegate executed when the endpoint is matched.</param>
96
96
/// <param name="httpMethods">HTTP methods that the endpoint will match.</param>
97
97
/// <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 (
99
99
this IEndpointRouteBuilder endpoints ,
100
100
string pattern ,
101
101
IEnumerable < string > httpMethods ,
@@ -120,7 +120,7 @@ public static MapActionEndpointConventionBuilder MapMethods(
120
120
/// <param name="pattern">The route pattern.</param>
121
121
/// <param name="action">The delegate executed when the endpoint is matched.</param>
122
122
/// <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 (
124
124
this IEndpointRouteBuilder endpoints ,
125
125
string pattern ,
126
126
Delegate action )
@@ -136,7 +136,7 @@ public static MapActionEndpointConventionBuilder Map(
136
136
/// <param name="pattern">The route pattern.</param>
137
137
/// <param name="action">The delegate executed when the endpoint is matched.</param>
138
138
/// <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 (
140
140
this IEndpointRouteBuilder endpoints ,
141
141
RoutePattern pattern ,
142
142
Delegate action )
@@ -185,7 +185,7 @@ public static MapActionEndpointConventionBuilder Map(
185
185
endpoints . DataSources . Add ( dataSource ) ;
186
186
}
187
187
188
- return new MapActionEndpointConventionBuilder ( dataSource . AddEndpointBuilder ( builder ) ) ;
188
+ return new MinimalActionEndpointConventionBuilder ( dataSource . AddEndpointBuilder ( builder ) ) ;
189
189
}
190
190
}
191
191
}
0 commit comments