@@ -62,12 +62,12 @@ public static IEndpointConventionBuilder MapDefaultControllerRoute(this IEndpoin
62
62
63
63
/// <summary>
64
64
/// Adds endpoints for controller actions to the <see cref="IEndpointRouteBuilder"/> and specifies a route
65
- /// with the given <paramref name="name"/>, <paramref name="template "/>,
65
+ /// with the given <paramref name="name"/>, <paramref name="pattern "/>,
66
66
/// <paramref name="defaults"/>, <paramref name="constraints"/>, and <paramref name="dataTokens"/>.
67
67
/// </summary>
68
68
/// <param name="routes">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param>
69
69
/// <param name="name">The name of the route.</param>
70
- /// <param name="template ">The URL pattern of the route.</param>
70
+ /// <param name="pattern ">The URL pattern of the route.</param>
71
71
/// <param name="defaults">
72
72
/// An object that contains default values for route parameters. The object's properties represent the
73
73
/// names and values of the default values.
@@ -83,7 +83,7 @@ public static IEndpointConventionBuilder MapDefaultControllerRoute(this IEndpoin
83
83
public static void MapControllerRoute (
84
84
this IEndpointRouteBuilder routes ,
85
85
string name ,
86
- string template ,
86
+ string pattern ,
87
87
object defaults = null ,
88
88
object constraints = null ,
89
89
object dataTokens = null )
@@ -98,21 +98,21 @@ public static void MapControllerRoute(
98
98
var dataSource = GetOrCreateDataSource ( routes ) ;
99
99
dataSource . AddRoute ( new ConventionalRouteEntry (
100
100
name ,
101
- template ,
101
+ pattern ,
102
102
new RouteValueDictionary ( defaults ) ,
103
103
new RouteValueDictionary ( constraints ) ,
104
104
new RouteValueDictionary ( dataTokens ) ) ) ;
105
105
}
106
106
107
107
/// <summary>
108
108
/// Adds endpoints for controller actions to the <see cref="IEndpointRouteBuilder"/> and specifies a route
109
- /// with the given <paramref name="name"/>, <paramref name="areaName"/>, <paramref name="template "/>,
109
+ /// with the given <paramref name="name"/>, <paramref name="areaName"/>, <paramref name="pattern "/>,
110
110
/// <paramref name="defaults"/>, <paramref name="constraints"/>, and <paramref name="dataTokens"/>.
111
111
/// </summary>
112
112
/// <param name="routes">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param>
113
113
/// <param name="name">The name of the route.</param>
114
114
/// <param name="areaName">The area name.</param>
115
- /// <param name="template ">The URL pattern of the route.</param>
115
+ /// <param name="pattern ">The URL pattern of the route.</param>
116
116
/// <param name="defaults">
117
117
/// An object that contains default values for route parameters. The object's properties represent the
118
118
/// names and values of the default values.
@@ -129,7 +129,7 @@ public static void MapAreaControllerRoute(
129
129
this IEndpointRouteBuilder routes ,
130
130
string name ,
131
131
string areaName ,
132
- string template ,
132
+ string pattern ,
133
133
object defaults = null ,
134
134
object constraints = null ,
135
135
object dataTokens = null )
@@ -150,7 +150,7 @@ public static void MapAreaControllerRoute(
150
150
var constraintsDictionary = new RouteValueDictionary ( constraints ) ;
151
151
constraintsDictionary [ "area" ] = constraintsDictionary [ "area" ] ?? new StringRouteConstraint ( areaName ) ;
152
152
153
- routes . MapControllerRoute ( name , template , defaultsDictionary , constraintsDictionary , dataTokens ) ;
153
+ routes . MapControllerRoute ( name , pattern , defaultsDictionary , constraintsDictionary , dataTokens ) ;
154
154
}
155
155
156
156
/// <summary>
@@ -175,7 +175,7 @@ public static void MapAreaControllerRoute(
175
175
/// <para>
176
176
/// <see cref="MapFallbackToController(IEndpointRouteBuilder, string, string)"/> does not re-execute routing, and will
177
177
/// not generate route values based on routes defined elsewhere. When using this overload, the <c>path</c> route value
178
- /// will be available.
178
+ /// will be available.
179
179
/// </para>
180
180
/// <para>
181
181
/// <see cref="MapFallbackToController(IEndpointRouteBuilder, string, string)"/> does not attempt to disambiguate between
@@ -184,8 +184,8 @@ public static void MapAreaControllerRoute(
184
184
/// </para>
185
185
/// </remarks>
186
186
public static void MapFallbackToController (
187
- this IEndpointRouteBuilder routes ,
188
- string action ,
187
+ this IEndpointRouteBuilder routes ,
188
+ string action ,
189
189
string controller )
190
190
{
191
191
if ( routes == null )
@@ -209,7 +209,7 @@ public static void MapFallbackToController(
209
209
GetOrCreateDataSource ( routes ) ;
210
210
211
211
// Maps a fallback endpoint with an empty delegate. This is OK because
212
- // we don't expect the delegate to run.
212
+ // we don't expect the delegate to run.
213
213
routes . MapFallback ( context => Task . CompletedTask ) . Add ( b =>
214
214
{
215
215
// MVC registers a policy that looks for this metadata.
@@ -228,8 +228,8 @@ public static void MapFallbackToController(
228
228
/// <param name="controller">The controller name.</param>
229
229
/// <remarks>
230
230
/// <para>
231
- /// <see cref="MapFallbackToController(IEndpointRouteBuilder, string, string, string)"/> is intended to handle cases
232
- /// where URL path of the request does not contain a file name, and no other endpoint has matched. This is convenient
231
+ /// <see cref="MapFallbackToController(IEndpointRouteBuilder, string, string, string)"/> is intended to handle cases
232
+ /// where URL path of the request does not contain a file name, and no other endpoint has matched. This is convenient
233
233
/// for routing requests for dynamic content to a SPA framework, while also allowing requests for non-existent files to
234
234
/// result in an HTTP 404.
235
235
/// </para>
@@ -242,8 +242,8 @@ public static void MapFallbackToController(
242
242
/// </para>
243
243
/// <para>
244
244
/// <see cref="MapFallbackToController(IEndpointRouteBuilder, string, string, string)"/> does not re-execute routing, and will
245
- /// not generate route values based on routes defined elsewhere. When using this overload, the route values provided by matching
246
- /// <paramref name="pattern"/> will be available.
245
+ /// not generate route values based on routes defined elsewhere. When using this overload, the route values provided by matching
246
+ /// <paramref name="pattern"/> will be available.
247
247
/// </para>
248
248
/// <para>
249
249
/// <see cref="MapFallbackToController(IEndpointRouteBuilder, string, string, string)"/> does not attempt to disambiguate between
@@ -283,7 +283,7 @@ public static void MapFallbackToController(
283
283
GetOrCreateDataSource ( routes ) ;
284
284
285
285
// Maps a fallback endpoint with an empty delegate. This is OK because
286
- // we don't expect the delegate to run.
286
+ // we don't expect the delegate to run.
287
287
routes . MapFallback ( pattern , context => Task . CompletedTask ) . Add ( b =>
288
288
{
289
289
// MVC registers a policy that looks for this metadata.
@@ -314,7 +314,7 @@ public static void MapFallbackToController(
314
314
/// <para>
315
315
/// <see cref="MapFallbackToAreaController(IEndpointRouteBuilder, string, string, string)"/> does not re-execute routing, and will
316
316
/// not generate route values based on routes defined elsewhere. When using this overload, the <c>path</c> route value
317
- /// will be available.
317
+ /// will be available.
318
318
/// </para>
319
319
/// <para>
320
320
/// <see cref="MapFallbackToAreaController(IEndpointRouteBuilder, string, string, string)"/> does not attempt to disambiguate between
@@ -349,7 +349,7 @@ public static void MapFallbackToAreaController(
349
349
GetOrCreateDataSource ( routes ) ;
350
350
351
351
// Maps a fallback endpoint with an empty delegate. This is OK because
352
- // we don't expect the delegate to run.
352
+ // we don't expect the delegate to run.
353
353
routes . MapFallback ( context => Task . CompletedTask ) . Add ( b =>
354
354
{
355
355
// MVC registers a policy that looks for this metadata.
@@ -369,8 +369,8 @@ public static void MapFallbackToAreaController(
369
369
/// <param name="area">The area name.</param>
370
370
/// <remarks>
371
371
/// <para>
372
- /// <see cref="MapFallbackToAreaController(IEndpointRouteBuilder, string, string, string, string)"/> is intended to handle
373
- /// cases where URL path of the request does not contain a file name, and no other endpoint has matched. This is
372
+ /// <see cref="MapFallbackToAreaController(IEndpointRouteBuilder, string, string, string, string)"/> is intended to handle
373
+ /// cases where URL path of the request does not contain a file name, and no other endpoint has matched. This is
374
374
/// convenient for routing requests for dynamic content to a SPA framework, while also allowing requests for non-existent files to
375
375
/// result in an HTTP 404.
376
376
/// </para>
@@ -383,7 +383,7 @@ public static void MapFallbackToAreaController(
383
383
/// </para>
384
384
/// <para>
385
385
/// <see cref="MapFallbackToAreaController(IEndpointRouteBuilder, string, string, string, string)"/> does not re-execute routing, and will
386
- /// not generate route values based on routes defined elsewhere. When using this overload, the route values provided by matching
386
+ /// not generate route values based on routes defined elsewhere. When using this overload, the route values provided by matching
387
387
/// <paramref name="pattern"/> will be available.
388
388
/// </para>
389
389
/// <para>
@@ -425,7 +425,7 @@ public static void MapFallbackToAreaController(
425
425
GetOrCreateDataSource ( routes ) ;
426
426
427
427
// Maps a fallback endpoint with an empty delegate. This is OK because
428
- // we don't expect the delegate to run.
428
+ // we don't expect the delegate to run.
429
429
routes . MapFallback ( pattern , context => Task . CompletedTask ) . Add ( b =>
430
430
{
431
431
// MVC registers a policy that looks for this metadata.
0 commit comments