Skip to content

Class StranglerFigRouteResolution

Namespace: Cephalon.Abstractions.Patterns
Assembly: Cephalon.Abstractions.dll

Describes the strangler-fig routing decision made for one request.

public sealed record StranglerFigRouteResolution : IEquatable<StranglerFigRouteResolution>

objectStranglerFigRouteResolution

IEquatable<StranglerFigRouteResolution>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

StranglerFigRouteResolution(string, string, string, string, string, string, StranglerFigTarget, string, string?, string?, string, IReadOnlyDictionary<string, string>)

Section titled “ StranglerFigRouteResolution(string, string, string, string, string, string, StranglerFigTarget, string, string?, string?, string, IReadOnlyDictionary<string, string>)”

Describes the strangler-fig routing decision made for one request.

public StranglerFigRouteResolution(string RouteId, string RouteDisplayName, string SourceModuleId, string RequestedPath, string RequestedMethod, string MatchedPathPrefix, StranglerFigTarget SelectedTarget, string SelectedEndpoint, string? LegacyEndpoint, string? ModernEndpoint, string ResolutionMode, IReadOnlyDictionary<string, string> Metadata)

RouteId string

The matched route identifier.

RouteDisplayName string

The operator-facing route name.

SourceModuleId string

The Cephalon module that owns the modern boundary.

RequestedPath string

The normalized request path that was evaluated.

RequestedMethod string

The normalized request method that was evaluated.

MatchedPathPrefix string

The normalized route prefix that matched the request.

SelectedTarget StranglerFigTarget

The migration boundary chosen for the request.

SelectedEndpoint string

The concrete endpoint or boundary identifier that should receive the request.

LegacyEndpoint string?

The configured legacy endpoint when one exists.

ModernEndpoint string?

The configured modern endpoint when one exists.

ResolutionMode string

The reason the boundary was chosen, such as preferred-target or fallback-target.

Metadata IReadOnlyDictionary<string, string>

Additional route metadata that traveled with the decision.

The configured legacy endpoint when one exists.

public string? LegacyEndpoint { get; init; }

string?

The normalized route prefix that matched the request.

public string MatchedPathPrefix { get; init; }

string

Additional route metadata that traveled with the decision.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

IReadOnlyDictionary<string, string>

The configured modern endpoint when one exists.

public string? ModernEndpoint { get; init; }

string?

The normalized request method that was evaluated.

public string RequestedMethod { get; init; }

string

The normalized request path that was evaluated.

public string RequestedPath { get; init; }

string

The reason the boundary was chosen, such as preferred-target or fallback-target.

public string ResolutionMode { get; init; }

string

The operator-facing route name.

public string RouteDisplayName { get; init; }

string

The matched route identifier.

public string RouteId { get; init; }

string

The concrete endpoint or boundary identifier that should receive the request.

public string SelectedEndpoint { get; init; }

string

The migration boundary chosen for the request.

public StranglerFigTarget SelectedTarget { get; init; }

StranglerFigTarget

The Cephalon module that owns the modern boundary.

public string SourceModuleId { get; init; }

string