Skip to content

RootExclusionTransformation

public sealed class RootExclusionTransformation

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Excludes option models based on their root type.

RootExclusionTransformation(IRootExclusionOptions)
Section titled “RootExclusionTransformation(IRootExclusionOptions)”
public RootExclusionTransformation(IRootExclusionOptions options)

Excludes option models based on their root type.

NameTypeDescription
optionsIRootExclusionOptionsThe options to use when excluding options.
Transform(OptionsModel, CancellationToken)
Section titled “Transform(OptionsModel, CancellationToken)”
public ValueTask<OptionsModel?> Transform(OptionsModel model, [CancellationToken cancellationToken = default(CancellationToken)])

Transforms or filters an options model.

NameTypeDescription
cancellationTokenCancellationTokenThe cancellation token used to request cancellation of the transformation.
modelOptionsModelThe model to transform or filter.

A task, that, upon completion, will contain the transformed model, ornull if the options are to be filtered.