Skip to content

TransformationPipeline

public sealed class TransformationPipeline

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Sequentially executes transformations on a list of option models.

TransformationPipeline(IEnumerable<IOptionsModelTransformation>, ILogger<TransformationPipeline>)
Section titled “TransformationPipeline(IEnumerable<IOptionsModelTransformation>, ILogger<TransformationPipeline>)”
public TransformationPipeline(IEnumerable<IOptionsModelTransformation> transformations, ILogger<TransformationPipeline> logger)

Sequentially executes transformations on a list of option models.

NameTypeDescription
loggerILogger<TransformationPipeline>The logger to use.
transformationsIEnumerable<IOptionsModelTransformation>The sequence of transformations to execute.
TransformOptions(ImmutableArray<OptionsModel>, CancellationToken)
Section titled “TransformOptions(ImmutableArray<OptionsModel>, CancellationToken)”
public ValueTask<ImmutableArray<OptionsModel>> TransformOptions(ImmutableArray<OptionsModel> options, CancellationToken ct)

Transforms a list of options models.

NameTypeDescription
ctCancellationTokenThe cancellation token used to request pipeline execution to be cancelled.
optionsImmutableArray<OptionsModel>The options to transform.

A task, that, upon completion, will contain the resulting list of models.