This repository was archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fixes #734] Attribute Routing: Implement Name
1. Added support for Name in attribute routing. Name can be defined using [RouteAttribute] and the different Http*Attributes, for example [HttpGet]. 2. Names defined on actions always override names defined on the controller. 3. Actions with a non empty template don't inherit the name from the controller. The name is only inherited from the controller when the action template is null or empty. 4. Multiple attribute routes with different templates and the same name are not allowed.
- Loading branch information
Showing
21 changed files
with
1,020 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,5 +70,8 @@ public int Order | |
return _order; | ||
} | ||
} | ||
|
||
/// <inheritdoc /> | ||
public string Name { get; set; } | ||
} | ||
} |
68 changes: 66 additions & 2 deletions
68
src/Microsoft.AspNet.Mvc.Core/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,5 +46,8 @@ public int Order | |
return _order; | ||
} | ||
} | ||
|
||
/// <inheritdoc /> | ||
public string Name { get; set; } | ||
} | ||
} |
Oops, something went wrong.