Udostępnij za pośrednictwem


DefaultDirectRouteProvider.GetControllerDirectRoutes Metoda

Definicja

Tworzy RouteEntry wystąpienia na podstawie dostarczonych fabryk, kontrolerów i akcji. Wpisy trasy zapewniały bezpośredni routing do dostarczonego kontrolera i mogą uzyskiwać dostęp do zestawu podanych akcji.

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)

Parametry

controllerDescriptor
ControllerDescriptor

Deskryptor kontrolera.

actionDescriptors
IReadOnlyList<ActionDescriptor>

Deskryptory akcji.

factories
IReadOnlyList<IDirectRouteFactory>

Fabryki tras bezpośrednich.

constraintResolver
IInlineConstraintResolver

Program rozpoznawania ograniczeń.

Zwraca

Zestaw wpisów trasy.

Dotyczy