TreeRouter Costruttore

Definizione

Crea una nuova istanza di 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)

Parametri

trees
UrlMatchingTree[]

Elenco di UrlMatchingTree che contiene le voci di route.

linkGenerationEntries
IEnumerable<OutboundRouteEntry>

Set di OutboundRouteEntry.

urlEncoder
UrlEncoder

Oggetto UrlEncoder.

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

Oggetto ObjectPool<T>.

routeLogger
ILogger

Istanza di ILogger.

constraintLogger
ILogger

ILogger Istanza usata in RouteConstraintMatcher.

version
Int32

Versione di questa route.

Si applica a