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
MatcherTemplateMatcherThe matcher compiled from the endpoint's route template.
EndpointRouteEndpointThe 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
Matcher
The matcher compiled from the endpoint's route template.
public TemplateMatcher Matcher { get; init; }