ExplicitlyAllowedValuesTransformation
public sealed class ExplicitlyAllowedValuesTransformation
Namespace: RhoMicro.BindSight.Transformations
Inheritance:
Summary
Section titled “Summary”Adds values specified via AllowedValuesAttribute, DeniedValuesAttributeand nullability annotations to the models allowed and denied values.
Constructors
Section titled “Constructors”ExplicitlyAllowedValuesTransformation()
Section titled “ExplicitlyAllowedValuesTransformation()”public ExplicitlyAllowedValuesTransformation()
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.