Share via


DefaultDirectRouteProvider.GetActionDirectRoutes Method

Definition

Creates RouteEntry instances based on the provided factories and action. The route entries provide direct routing to the provided action.

protected virtual System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry> GetActionDirectRoutes(System.Web.Mvc.ActionDescriptor actionDescriptor, System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.IDirectRouteFactory> factories, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
abstract member GetActionDirectRoutes : 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.GetActionDirectRoutes : 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 GetActionDirectRoutes (actionDescriptor As ActionDescriptor, factories As IReadOnlyList(Of IDirectRouteFactory), constraintResolver As IInlineConstraintResolver) As IReadOnlyList(Of RouteEntry)

Parameters

actionDescriptor
ActionDescriptor

The action descriptor.

factories
IReadOnlyList<IDirectRouteFactory>

The direct route factories.

constraintResolver
IInlineConstraintResolver

The constraint resolver.

Returns

A set of route entries.

Applies to