Skip to content

TransformationPipelineBuilder

public sealed class TransformationPipelineBuilder

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Builds the sequence of transformations used in TransformationPipeline.

TransformationPipelineBuilder(BindSightBuilder)
Section titled “TransformationPipelineBuilder(BindSightBuilder)”
public TransformationPipelineBuilder(BindSightBuilder optionsDocs)

Builds the sequence of transformations used in TransformationPipeline.

NameTypeDescription
optionsDocsBindSightBuilderThe options docs builder to wrap.
public BindSightBuilder BindSight { get; }

Gets the wrapped options docs builder.

public KeyReplacementsBuilder KeyReplacements { get; }

Gets a builder for configuring key replacements.

public TransformationPipelineBuilder Clear()

Clears all transformations from the builder.

A reference to the builder, for chaining of further method calls.

Use(Func<IServiceProvider, IOptionsModelTransformation>)
Section titled “Use(Func<IServiceProvider, IOptionsModelTransformation>)”
public TransformationPipelineBuilder Use(Func<IServiceProvider, IOptionsModelTransformation> factory)

Appends a transformation to the transformations sequence.

NameTypeDescription
factoryFunc<IServiceProvider, IOptionsModelTransformation>The factory callback using which to create the transformation.

A reference to the builder, for chaining of further method calls.

public TransformationPipelineBuilder Use<TTransformation>() where TTransformation : class, IOptionsModelTransformation

Appends a transformation to the transformations sequence.

NameDescriptionConstraints
TTransformationThe type of transformation to append.class, IOptionsModelTransformation

A reference to the builder, for chaining of further method calls.

public TransformationPipelineBuilder UseDefaults()

Attempts to append default transformations to the transformation sequence.

The default transformations are (in order of execution):

A reference to the builder, for chaining of further method calls.