Skip to content

Class StranglerFigMigrationRuntimeDescriptor

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

Describes the effective runtime migration policy for one strangler-fig route.

public sealed class StranglerFigMigrationRuntimeDescriptor

objectStranglerFigMigrationRuntimeDescriptor

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

StranglerFigMigrationRuntimeDescriptor(string, string, string, string, string, StranglerFigTarget, StranglerFigTarget, StranglerFigTarget, string, string, string, string?, string?, IReadOnlyList<string>?, string?, int, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)

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

Creates a strangler-fig runtime migration descriptor.

public StranglerFigMigrationRuntimeDescriptor(string routeId, string sourceModuleId, string displayName, string description, string pathPrefix, StranglerFigTarget authoredTarget, StranglerFigTarget requestedTarget, StranglerFigTarget effectiveTarget, string requestedTargetSource, string selectionMode, string selectedEndpoint, string? legacyEndpoint = null, string? modernEndpoint = null, IReadOnlyList<string>? methods = null, string? progressState = null, int progressPercent = 0, IReadOnlyDictionary<string, string>? metadata = null, IReadOnlyDictionary<string, string>? runtimeMetadata = null)

routeId 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 matches.

authoredTarget StranglerFigTarget

The target preferred by the authored route descriptor.

requestedTarget StranglerFigTarget

The target requested after applying migration-policy overlays.

effectiveTarget StranglerFigTarget

The target that will actually receive traffic after endpoint fallback is considered.

requestedTargetSource string

The source of the requested target, such as authored-route or migration-route.

selectionMode string

The runtime selection result, such as requested-target or fallback-target.

selectedEndpoint string

The concrete endpoint or boundary identifier that will receive traffic.

legacyEndpoint string?

The legacy boundary identifier or endpoint when one is configured.

modernEndpoint string?

The modern Cephalon boundary identifier or endpoint when one is configured.

methods IReadOnlyList<string>?

Optional request methods that this route matches.

progressState string?

The normalized migration-progress state for the route.

progressPercent int

The normalized migration-progress percentage for the route.

metadata IReadOnlyDictionary<string, string>?

The original authored route metadata.

runtimeMetadata IReadOnlyDictionary<string, string>?

Additional runtime-only metadata such as notes or overlay provenance.

Gets the target preferred by the authored route descriptor.

public StranglerFigTarget AuthoredTarget { get; }

StranglerFigTarget

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 target that will actually receive traffic after endpoint fallback is considered.

public StranglerFigTarget EffectiveTarget { get; }

StranglerFigTarget

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

public string? LegacyEndpoint { get; }

string?

Gets the original authored route metadata.

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

IReadOnlyDictionary<string, string>

Gets the normalized request methods that this route matches.

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 matches this route.

public string PathPrefix { get; }

string

Gets the normalized migration-progress percentage for the route.

public int ProgressPercent { get; }

int

Gets the normalized migration-progress state for the route.

public string ProgressState { get; }

string

Gets the target requested after applying migration-policy overlays.

public StranglerFigTarget RequestedTarget { get; }

StranglerFigTarget

Gets the source of the requested target, such as authored-route, migration-default, or migration-route.

public string RequestedTargetSource { get; }

string

Gets the stable route identifier.

public string RouteId { get; }

string

Gets runtime-only metadata such as notes or overlay provenance.

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

IReadOnlyDictionary<string, string>

Gets the concrete endpoint or boundary identifier that will receive traffic.

public string SelectedEndpoint { get; }

string

Gets the runtime selection result, such as requested-target or fallback-target.

public string SelectionMode { get; }

string

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

public string SourceModuleId { get; }

string