Class MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput>
Inheritance
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput>
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public sealed class MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> where TReadResult : class where TWriteResult : class
Type Parameters
Name |
Description |
TReadResult |
|
TWriteResult |
|
TReadInput |
|
TWriteInput |
|
Constructors
MigrationBuilder(ILdClient)
Declaration
public MigrationBuilder(ILdClient client)
Parameters
Methods
Build()
Declaration
public IMigration<TReadResult, TWriteResult, TReadInput, TWriteInput> Build()
Returns
Type |
Description |
IMigration<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|
Read(Func<TReadInput, Result<TReadResult>>, Func<TReadInput, Result<TReadResult>>)
Declaration
public MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> Read(Func<TReadInput, MigrationMethod.Result<TReadResult>> readOld, Func<TReadInput, MigrationMethod.Result<TReadResult>> readNew)
Parameters
Returns
Type |
Description |
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|
Read(Func<TReadInput, Result<TReadResult>>, Func<TReadInput, Result<TReadResult>>, Func<TReadResult, TReadResult, bool>)
Declaration
public MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> Read(Func<TReadInput, MigrationMethod.Result<TReadResult>> readOld, Func<TReadInput, MigrationMethod.Result<TReadResult>> readNew, Func<TReadResult, TReadResult, bool> check)
Parameters
Returns
Type |
Description |
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|
ReadExecution(MigrationExecution)
Declaration
public MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> ReadExecution(MigrationExecution execution)
Parameters
Returns
Type |
Description |
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|
TrackErrors(bool)
Declaration
public MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> TrackErrors(bool trackErrors)
Parameters
Type |
Name |
Description |
bool |
trackErrors |
|
Returns
Type |
Description |
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|
TrackLatency(bool)
Declaration
public MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> TrackLatency(bool trackLatency)
Parameters
Type |
Name |
Description |
bool |
trackLatency |
|
Returns
Type |
Description |
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|
Write(Func<TWriteInput, Result<TWriteResult>>, Func<TWriteInput, Result<TWriteResult>>)
Declaration
public MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> Write(Func<TWriteInput, MigrationMethod.Result<TWriteResult>> writeOld, Func<TWriteInput, MigrationMethod.Result<TWriteResult>> writeNew)
Parameters
Returns
Type |
Description |
MigrationBuilder<TReadResult, TWriteResult, TReadInput, TWriteInput> |
|