Share via


TreeRouter Class

Definition

An IRouter implementation for attribute routing.

public ref class TreeRouter : Microsoft::AspNetCore::Routing::IRouter
public class TreeRouter : Microsoft.AspNetCore.Routing.IRouter
type TreeRouter = class
    interface IRouter
Public Class TreeRouter
Implements IRouter
Inheritance
TreeRouter
Implements

Constructors

TreeRouter(UrlMatchingTree[], IEnumerable<OutboundRouteEntry>, UrlEncoder, ObjectPool<UriBuildingContext>, ILogger, ILogger, Int32)

Creates a new instance of TreeRouter.

Fields

RouteGroupKey

Key used by routing and action selection to match an attribute route entry to a group of action descriptors.

Properties

Version

Gets the version of this route.

Methods

GetVirtualPath(VirtualPathContext)

Returns the URL that is associated with the route details provided in context

RouteAsync(RouteContext)

Asynchronously routes based on the current context.

Applies to