Skip to content

Class StranglerFigRouteDescriptor

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

Describes one strangler-fig route owned by a Cephalon module.

public sealed class StranglerFigRouteDescriptor

objectStranglerFigRouteDescriptor

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

StranglerFigRouteDescriptor(string, string, string, string, string, StranglerFigTarget, string?, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)

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

Creates a strangler-fig route descriptor.

public StranglerFigRouteDescriptor(string id, string sourceModuleId, string displayName, string description, string pathPrefix, StranglerFigTarget preferredTarget = StranglerFigTarget.Modern, string? legacyEndpoint = null, string? modernEndpoint = null, IReadOnlyList<string>? methods = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable route identifier.

sourceModuleId string

The Cephalon module that owns the modern boundary for this route.

displayName string

The operator-facing route name.

description string

The human-readable description of the migration boundary.

pathPrefix string

The rooted path prefix that this route should match.

preferredTarget StranglerFigTarget

The preferred boundary for matched requests.

legacyEndpoint string?

The legacy boundary identifier or endpoint.

modernEndpoint string?

The modern Cephalon boundary identifier or endpoint.

methods IReadOnlyList<string>?

Optional request methods that this route should match.

metadata IReadOnlyDictionary<string, string>?

Optional route metadata.

Gets the human-readable description of the migration boundary.

public string Description { get; }

string

Gets the operator-facing route name.

public string DisplayName { get; }

string

Gets the stable route identifier.

public string Id { get; }

string

Gets the legacy boundary identifier or endpoint when one is configured.

public string? LegacyEndpoint { get; }

string?

Gets optional route metadata.

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

IReadOnlyDictionary<string, string>

Gets the normalized request methods that this route should match.

public IReadOnlyList<string> Methods { get; }

IReadOnlyList<string>

Gets the modern Cephalon boundary identifier or endpoint when one is configured.

public string? ModernEndpoint { get; }

string?

Gets the rooted path prefix that should match this route.

public string PathPrefix { get; }

string

Gets the preferred boundary for matched requests.

public StranglerFigTarget PreferredTarget { get; }

StranglerFigTarget

Gets the module that owns the modern Cephalon boundary for this route.

public string SourceModuleId { get; }

string