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

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

Creates a new instance of TreeRouter.

Fields

Name Description
RouteGroupKey

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

Properties

Name Description
Version

Gets the version of this route.

Methods

Name Description
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