Table of Contents

Interface IDirectRouteProvider

Namespace
System.Web.Mvc.Routing
Assembly
System.Web.Mvc.dll

Defines a provider for routes that directly target action descriptors (attribute routes).

public interface IDirectRouteProvider

Methods

GetDirectRoutes(ControllerDescriptor, IReadOnlyList<ActionDescriptor>, IInlineConstraintResolver)

Gets the direct routes for a controller.

IReadOnlyList<RouteEntry> GetDirectRoutes(ControllerDescriptor controllerDescriptor, IReadOnlyList<ActionDescriptor> actionDescriptors, IInlineConstraintResolver constraintResolver)

Parameters

controllerDescriptor ControllerDescriptor

The controller descriptor.

actionDescriptors IReadOnlyList<ActionDescriptor>

The action descriptors.

constraintResolver IInlineConstraintResolver

The inline constraint resolver.

Returns

IReadOnlyList<RouteEntry>

A set of route entries for the controller.