TreeRouteBuilder Class

Builder for Microsoft.AspNetCore.Routing.Tree.TreeRouter instances.

Namespace
Microsoft.AspNetCore.Routing.Tree
Assemblies
  • Microsoft.AspNetCore.Routing

Syntax

public class TreeRouteBuilder
class Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder

Constructors

TreeRouteBuilder(Microsoft.Extensions.Logging.ILoggerFactory, System.Text.Encodings.Web.UrlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>, Microsoft.AspNetCore.Routing.IInlineConstraintResolver)

Initializes a new instance of Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.

Arguments:
public TreeRouteBuilder(ILoggerFactory loggerFactory, UrlEncoder urlEncoder, ObjectPool<UriBuildingContext> objectPool, IInlineConstraintResolver constraintResolver)

Methods

Build()

Builds a Microsoft.AspNetCore.Routing.Tree.TreeRouter with the Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.InboundEntries and Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.OutboundEntries defined in this Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.

Return type:Microsoft.AspNetCore.Routing.Tree.TreeRouter
Returns:The Microsoft.AspNetCore.Routing.Tree.TreeRouter.
public TreeRouter Build()
Build(System.Int32)

Builds a Microsoft.AspNetCore.Routing.Tree.TreeRouter with the Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.InboundEntries and Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.OutboundEntries defined in this Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.

Arguments:version (System.Int32) – The version of the Microsoft.AspNetCore.Routing.Tree.TreeRouter.
Return type:Microsoft.AspNetCore.Routing.Tree.TreeRouter
Returns:The Microsoft.AspNetCore.Routing.Tree.TreeRouter.
public TreeRouter Build(int version)
Clear()

Removes all Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.InboundEntries and Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.OutboundEntries from this Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.

public void Clear()
MapInbound(Microsoft.AspNetCore.Routing.IRouter, Microsoft.AspNetCore.Routing.Template.RouteTemplate, System.String, System.Int32)

Adds a new inbound route to the Microsoft.AspNetCore.Routing.Tree.TreeRouter.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry

Returns:

The Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry.

public InboundRouteEntry MapInbound(IRouter handler, RouteTemplate routeTemplate, string routeName, int order)
MapOutbound(Microsoft.AspNetCore.Routing.IRouter, Microsoft.AspNetCore.Routing.Template.RouteTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary, System.String, System.Int32)

Adds a new outbound route to the Microsoft.AspNetCore.Routing.Tree.TreeRouter.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry

Returns:

The Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry.

public OutboundRouteEntry MapOutbound(IRouter handler, RouteTemplate routeTemplate, RouteValueDictionary requiredLinkValues, string routeName, int order)

Properties

Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.InboundEntries

Gets the list of Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry.

Return type:System.Collections.Generic.IList<Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry>
public IList<InboundRouteEntry> InboundEntries { get; }
Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder.OutboundEntries

Gets the list of Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry.

Return type:System.Collections.Generic.IList<Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry>
public IList<OutboundRouteEntry> OutboundEntries { get; }