DefaultDirectRouteProvider.GetControllerDirectRoutes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates RouteEntry instances based on the provided factories, controller and actions. The route entries provided direct routing to the provided controller and can reach the set of provided actions.
protected virtual System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry> GetControllerDirectRoutes(System.Web.Mvc.ControllerDescriptor controllerDescriptor, System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> actionDescriptors, System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.IDirectRouteFactory> factories, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
abstract member GetControllerDirectRoutes : System.Web.Mvc.ControllerDescriptor * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.IDirectRouteFactory> * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry>
override this.GetControllerDirectRoutes : System.Web.Mvc.ControllerDescriptor * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.IDirectRouteFactory> * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry>
Protected Overridable Function GetControllerDirectRoutes (controllerDescriptor As ControllerDescriptor, actionDescriptors As IReadOnlyList(Of ActionDescriptor), factories As IReadOnlyList(Of IDirectRouteFactory), constraintResolver As IInlineConstraintResolver) As IReadOnlyList(Of RouteEntry)
Parameters
- controllerDescriptor
- ControllerDescriptor
The controller descriptor.
- actionDescriptors
- IReadOnlyList<ActionDescriptor>
The action descriptors.
- factories
- IReadOnlyList<IDirectRouteFactory>
The direct route factories.
- constraintResolver
- IInlineConstraintResolver
The constraint resolver.
Returns
A set of route entries.