With the new attribute routing extensibility of IDirectRouteProvider, a user could do the following: This class provides separate overridable virtual methods to change the logic for discovering attributes, creating route entries, and discovering route prefix and area prefix. An IDirectRouteProvider implementation may be specified when calling MapAttributes/MapHttpAttributeRoutes.Ĭustomizing IDirectRouteProvider will be easiest by extending our default implementation, DefaultDirectRouteProvider. An IDirectRouteProvider is responsible for providing a list of actions and controllers along with associated route information to specify exactly what routing configuration is desired for those actions. Tutorials and other information about ASP.NET MVC 5.2 are available from the ASP.NET web site ( ).Īttribute Routing now provides an extensibility point called IDirectRouteProvider, which allows full control over how attribute routes are discovered and configured. You can install or update to the released NuGet packages by using the NuGet Package Manager Console: The release also includes corresponding localized packages on NuGet. You can install or update these packages through NuGet. The latest ASP.NET MVC 5.2 package has the following version: "5.2.0". All the runtime packages follow the Semantic Versioning specification. The runtime features are released as NuGet packages on the NuGet gallery. This update is needed for editing ASP.NET MVC 5.2 Razor Views.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |