Compartir a través de


DefaultDirectRouteProvider.GetDirectRoutes Método

Definición

Obtiene rutas directas para el descriptor de controlador y los descriptores de acción especificados en función de IDirectRouteFactory los atributos.

public virtual System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry> GetDirectRoutes (System.Web.Mvc.ControllerDescriptor controllerDescriptor, System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> actionDescriptors, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
abstract member GetDirectRoutes : System.Web.Mvc.ControllerDescriptor * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry>
override this.GetDirectRoutes : System.Web.Mvc.ControllerDescriptor * System.Collections.Generic.IReadOnlyList<System.Web.Mvc.ActionDescriptor> * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Collections.Generic.IReadOnlyList<System.Web.Mvc.Routing.RouteEntry>
Public Overridable Function GetDirectRoutes (controllerDescriptor As ControllerDescriptor, actionDescriptors As IReadOnlyList(Of ActionDescriptor), constraintResolver As IInlineConstraintResolver) As IReadOnlyList(Of RouteEntry)

Parámetros

controllerDescriptor
ControllerDescriptor

El descriptor del controlador.

actionDescriptors
IReadOnlyList<ActionDescriptor>

Los descriptores de acción para todas las acciones.

constraintResolver
IInlineConstraintResolver

La resolución de restricciones.

Devoluciones

Un conjunto de entradas de ruta.

Implementaciones

Se aplica a