Skip to content

AllowedEnumValuesTransformation

public sealed class AllowedEnumValuesTransformation

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Adds allowed enum values to children whose modelled type is an enum type.

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