Table of Contents

Class MatchedRoute

Namespace
MRX.FeatureDiscovery.RouteProbing
Assembly
MRX.FeatureDiscovery.dll

Pairs a compiled route template matcher with the endpoint it resolves to, so a candidate path can be tested against the route without re-parsing its template.

public record MatchedRoute : IEquatable<MatchedRoute>
Inheritance
MatchedRoute
Implements
Inherited Members

Constructors

MatchedRoute(TemplateMatcher, RouteEndpoint)

Pairs a compiled route template matcher with the endpoint it resolves to, so a candidate path can be tested against the route without re-parsing its template.

public MatchedRoute(TemplateMatcher Matcher, RouteEndpoint Endpoint)

Parameters

Matcher TemplateMatcher

The matcher compiled from the endpoint's route template.

Endpoint RouteEndpoint

The endpoint that the route resolves to when matched.

Properties

Endpoint

The endpoint that the route resolves to when matched.

public RouteEndpoint Endpoint { get; init; }

Property Value

RouteEndpoint

Matcher

The matcher compiled from the endpoint's route template.

public TemplateMatcher Matcher { get; init; }

Property Value

TemplateMatcher