Skip to content

ExplicitlyAllowedValuesTransformation

public sealed class ExplicitlyAllowedValuesTransformation

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Adds values specified via AllowedValuesAttribute, DeniedValuesAttributeand nullability annotations to the models allowed and denied values.

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