AllowedBooleanValuesTransformation
public sealed class AllowedBooleanValuesTransformation
Namespace: RhoMicro.BindSight.Transformations
Inheritance:
Summary
Section titled “Summary”Adds the values true
and false
to the allowed values for children whose modelled type is Boolean or Nullable<T>.
Constructors
Section titled “Constructors”AllowedBooleanValuesTransformation()
Section titled “AllowedBooleanValuesTransformation()”public AllowedBooleanValuesTransformation()
Methods
Section titled “Methods”Transform(OptionsModel, CancellationToken)
Section titled “Transform(OptionsModel, CancellationToken)”public ValueTask<OptionsModel?> Transform(OptionsModel model, [CancellationToken cancellationToken = default(CancellationToken)])
Summary
Section titled “Summary”Transforms or filters an options model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
cancellationToken | CancellationToken | The cancellation token used to request cancellation of the transformation. |
model | OptionsModel | The model to transform or filter. |
Returns
Section titled “Returns”A task, that, upon completion, will contain the transformed model, ornull
if the options are to be filtered.