Skip to content

Commit 45ffe20

Browse files
committed
Endpoint names are not inferred
- Reverted in .NET 6 RC 2: dotnet/aspnetcore#36518
1 parent 63ce9dd commit 45ffe20

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

aspnetcore/fundamentals/minimal-apis.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,6 @@ Routes can be given names in order to generate URLs to the route. Using a named
337337

338338
The preceding code displays `The link to the hello route is /hello` from the `/` endpoint.
339339

340-
Route names are inferred from method names if specified:
341-
342-
[!code-csharp[](minimal-apis/samples/WebMinAPIs/Program.cs?name=snippet_nr2)]
343-
344-
**REVIEW**: `{linker.GetPathByName("Hi", values: null)}` is null in the preceding code.
345-
346-
**NOTE**: Route names are case sensitive.
347-
348340
Route names:
349341

350342
* Must be globally unique.

0 commit comments

Comments
 (0)