Compartilhar via


DefaultDirectRouteProvider.GetControllerDirectRoutes Método

Definição

Cria RouteEntry instâncias com base nas fábricas, no controlador e nas ações fornecidas. As entradas de rota forneceram roteamento direto ao controlador fornecido e podem atingir o conjunto de ações fornecidas.

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)

Parâmetros

controllerDescriptor
ControllerDescriptor

O descritor do controlador.

actionDescriptors
IReadOnlyList<ActionDescriptor>

Os descritores da ação.

factories
IReadOnlyList<IDirectRouteFactory>

Os alocadores de rota direta.

constraintResolver
IInlineConstraintResolver

O resolvedor de restrição.

Retornos

Um conjunto de entradas de rota.

Aplica-se a