Skip to content

Class StranglerFigMigrationSettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven strangler-fig migration settings for a Cephalon app.

public sealed class StranglerFigMigrationSettings

objectStranglerFigMigrationSettings

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

StranglerFigMigrationSettings(StranglerFigTarget?, string?, int?, IReadOnlyList<StranglerFigRoutePolicySettings>?)

Section titled “ StranglerFigMigrationSettings(StranglerFigTarget?, string?, int?, IReadOnlyList<StranglerFigRoutePolicySettings>?)”

Initializes a new instance of the class.

public StranglerFigMigrationSettings(StranglerFigTarget? defaultTarget = null, string? defaultProgressState = null, int? defaultProgressPercent = null, IReadOnlyList<StranglerFigRoutePolicySettings>? routes = null)

defaultTarget StranglerFigTarget?

The default target to request for routes without an explicit route-level override.

defaultProgressState string?

The default normalized progress state for routes without an explicit route-level override.

defaultProgressPercent int?

The default normalized progress percent for routes without an explicit route-level override.

routes IReadOnlyList<StranglerFigRoutePolicySettings>?

The route-specific strangler-fig migration-policy entries.

Gets the default normalized progress percent for routes without an explicit route-level override.

public int? DefaultProgressPercent { get; }

int?

Gets the default normalized progress state for routes without an explicit route-level override.

public string? DefaultProgressState { get; }

string?

Gets the default target to request for routes without an explicit route-level override.

public StranglerFigTarget? DefaultTarget { get; }

StranglerFigTarget?

Gets an empty strangler-fig migration-settings instance.

public static StranglerFigMigrationSettings Empty { get; }

StranglerFigMigrationSettings

Gets a value indicating whether any strangler-fig migration settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the route-specific strangler-fig migration-policy entries.

public IReadOnlyList<StranglerFigRoutePolicySettings> Routes { get; }

IReadOnlyList<StranglerFigRoutePolicySettings>

Reads strangler-fig migration settings from the supplied configuration section.

public static StranglerFigMigrationSettings FromSection(IConfigurationSection? section)

section IConfigurationSection?

The configuration section that contains the strangler-fig migration settings.

StranglerFigMigrationSettings

The parsed strangler-fig migration settings.