Skip to content

AllowedBooleanValuesTransformation

public sealed class AllowedBooleanValuesTransformation

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Adds the values true and false to the allowed values for children whose modelled type is Boolean or Nullable<T>.

public AllowedBooleanValuesTransformation()
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.