Skip to content

ValuesEnrichment

public sealed class ValuesEnrichment

Namespace: RhoMicro.BindSight.Enrichments

Inheritance:

Enriches instances of OptionsModelChild and OptionsModelRootwith allowed and disallowed values.

ValuesEnrichment(IReadOnlySet<object>, IReadOnlySet<object>)
Section titled “ValuesEnrichment(IReadOnlySet<object>, IReadOnlySet<object>)”
public ValuesEnrichment(IReadOnlySet<object?> disallowedValues, IReadOnlySet<object?> allowedValues)

Enriches instances of OptionsModelChild and OptionsModelRootwith allowed and disallowed values.

NameTypeDescription
allowedValuesIReadOnlySet<Object>The values allowed for the model.
disallowedValuesIReadOnlySet<Object>The values disallowed for the model.
public IReadOnlySet<object?> DisallowedValues { get; }

Gets the values disallowed for the model.

public IReadOnlySet<object?> AllowedValues { get; }

Gets the values allowed for the model.

Create(IServiceProvider, OptionsModelChild)
Section titled “Create(IServiceProvider, OptionsModelChild)”
public static ValuesEnrichment Create(IServiceProvider services, OptionsModelChild child)
Create(IServiceProvider, OptionsModelRoot)
Section titled “Create(IServiceProvider, OptionsModelRoot)”
public static ValuesEnrichment Create(IServiceProvider services, OptionsModelRoot root)