TreeRouter Constructor

Definition

Creates a new instance of TreeRouter.

public:
 TreeRouter(cli::array <Microsoft::AspNetCore::Routing::Tree::UrlMatchingTree ^> ^ trees, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Tree::OutboundRouteEntry ^> ^ linkGenerationEntries, System::Text::Encodings::Web::UrlEncoder ^ urlEncoder, Microsoft::Extensions::ObjectPool::ObjectPool<Microsoft::AspNetCore::Routing::Internal::UriBuildingContext ^> ^ objectPool, Microsoft::Extensions::Logging::ILogger ^ routeLogger, Microsoft::Extensions::Logging::ILogger ^ constraintLogger, int version);
public TreeRouter (Microsoft.AspNetCore.Routing.Tree.UrlMatchingTree[] trees, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry> linkGenerationEntries, System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> objectPool, Microsoft.Extensions.Logging.ILogger routeLogger, Microsoft.Extensions.Logging.ILogger constraintLogger, int version);
new Microsoft.AspNetCore.Routing.Tree.TreeRouter : Microsoft.AspNetCore.Routing.Tree.UrlMatchingTree[] * seq<Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry> * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.Extensions.Logging.ILogger * Microsoft.Extensions.Logging.ILogger * int -> Microsoft.AspNetCore.Routing.Tree.TreeRouter
Public Sub New (trees As UrlMatchingTree(), linkGenerationEntries As IEnumerable(Of OutboundRouteEntry), urlEncoder As UrlEncoder, objectPool As ObjectPool(Of UriBuildingContext), routeLogger As ILogger, constraintLogger As ILogger, version As Integer)

Parameters

trees
UrlMatchingTree[]

The list of UrlMatchingTree that contains the route entries.

linkGenerationEntries
IEnumerable<OutboundRouteEntry>

The set of OutboundRouteEntry.

urlEncoder
UrlEncoder

The UrlEncoder.

objectPool
ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>

The ObjectPool<T>.

routeLogger
ILogger

The ILogger instance.

constraintLogger
ILogger

The ILogger instance used in RouteConstraintMatcher.

version
Int32

The version of this route.

Applies to