Table of Contents

Interface IDirectRouteProvider

Namespace
System.Web.Http.Routing
Assembly
System.Web.Http.dll

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

public interface IDirectRouteProvider

Methods

GetDirectRoutes(HttpControllerDescriptor, IReadOnlyList<HttpActionDescriptor>, IInlineConstraintResolver)

Gets the direct routes for a controller.

IReadOnlyList<RouteEntry> GetDirectRoutes(HttpControllerDescriptor controllerDescriptor, IReadOnlyList<HttpActionDescriptor> actionDescriptors, IInlineConstraintResolver constraintResolver)

Parameters

controllerDescriptor HttpControllerDescriptor

The controller descriptor.

actionDescriptors IReadOnlyList<HttpActionDescriptor>

The action descriptors.

constraintResolver IInlineConstraintResolver

The inline constraint resolver.

Returns

IReadOnlyList<RouteEntry>

A set of route entries for the controller.