DefaultDirectRouteProvider.GetControllerDirectRoutes Method (HttpControllerDescriptor, IReadOnlyList<HttpActionDescriptor>, IReadOnlyList<IDirectRouteFactory>, IInlineConstraintResolver)
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.
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
protected virtual IReadOnlyList<RouteEntry> GetControllerDirectRoutes(
HttpControllerDescriptor controllerDescriptor,
IReadOnlyList<HttpActionDescriptor> actionDescriptors,
IReadOnlyList<IDirectRouteFactory> factories,
IInlineConstraintResolver constraintResolver
)
protected:
virtual IReadOnlyList<RouteEntry^>^ GetControllerDirectRoutes(
HttpControllerDescriptor^ controllerDescriptor,
IReadOnlyList<HttpActionDescriptor^>^ actionDescriptors,
IReadOnlyList<IDirectRouteFactory^>^ factories,
IInlineConstraintResolver^ constraintResolver
)
abstract GetControllerDirectRoutes :
controllerDescriptor:HttpControllerDescriptor *
actionDescriptors:IReadOnlyList<HttpActionDescriptor> *
factories:IReadOnlyList<IDirectRouteFactory> *
constraintResolver:IInlineConstraintResolver -> IReadOnlyList<RouteEntry>
override GetControllerDirectRoutes :
controllerDescriptor:HttpControllerDescriptor *
actionDescriptors:IReadOnlyList<HttpActionDescriptor> *
factories:IReadOnlyList<IDirectRouteFactory> *
constraintResolver:IInlineConstraintResolver -> IReadOnlyList<RouteEntry>
Protected Overridable Function GetControllerDirectRoutes (
controllerDescriptor As HttpControllerDescriptor,
actionDescriptors As IReadOnlyList(Of HttpActionDescriptor),
factories As IReadOnlyList(Of IDirectRouteFactory),
constraintResolver As IInlineConstraintResolver
) As IReadOnlyList(Of RouteEntry)
Parameters
controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptorThe controller descriptor.
actionDescriptors
Type: System.Collections.Generic.IReadOnlyList<HttpActionDescriptor>The action descriptors.
factories
Type: System.Collections.Generic.IReadOnlyList<IDirectRouteFactory>The direct route factories.
constraintResolver
Type: System.Web.Http.Routing.IInlineConstraintResolverThe constraint resolver.
Return Value
Type: System.Collections.Generic.IReadOnlyList<RouteEntry>
A set of route entries.
See Also
DefaultDirectRouteProvider Class
System.Web.Http.Routing Namespace
Return to top