Struct MigrationVariation
The result of an MigrationVariation call.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Migrations
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public readonly struct MigrationVariation
Properties
| Edit this page View SourceStage
The result of the flag evaluation. This will be either one of the flag's variations or the default value that was passed to MigrationVariation.
Declaration
public MigrationStage Stage { get; }
Property Value
| Type | Description |
|---|---|
| MigrationStage |
Tracker
A tracker which can be used to generate analytics for the migration.
Declaration
public MigrationOpTracker Tracker { get; }
Property Value
| Type | Description |
|---|---|
| MigrationOpTracker |
Methods
| Edit this page View SourceDeconstruct(out MigrationStage, out MigrationOpTracker)
Deconstruct the MigrationVariation into the stage and tracker.
Declaration
public void Deconstruct(out MigrationStage stage, out MigrationOpTracker tracker)
Parameters
| Type | Name | Description |
|---|---|---|
| MigrationStage | stage | the stage of the variation |
| MigrationOpTracker | tracker | the tracker for the variation |
Remarks
var (stage, tracker) = client.MigrationVariation(flagKey, context, defaultStage);