AllowedEnumValuesTransformation
public sealed class AllowedEnumValuesTransformation
Namespace: RhoMicro.BindSight.Transformations
Inheritance:
Summary
Section titled “Summary”Adds allowed enum values to children whose modelled type is an enum type.
Constructors
Section titled “Constructors”AllowedEnumValuesTransformation()
Section titled “AllowedEnumValuesTransformation()”public AllowedEnumValuesTransformation()
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.