ValuesEnrichment
public sealed class ValuesEnrichment
Namespace: RhoMicro.BindSight.Enrichments
Inheritance:
Summary
Section titled “Summary”Enriches instances of OptionsModelChild and OptionsModelRootwith allowed and disallowed values.
Constructors
Section titled “Constructors”ValuesEnrichment(IReadOnlySet<object>, IReadOnlySet<object>)
Section titled “ValuesEnrichment(IReadOnlySet<object>, IReadOnlySet<object>)”public ValuesEnrichment(IReadOnlySet<object?> disallowedValues, IReadOnlySet<object?> allowedValues)
Summary
Section titled “Summary”Enriches instances of OptionsModelChild and OptionsModelRootwith allowed and disallowed values.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
allowedValues | IReadOnlySet<Object> | The values allowed for the model. |
disallowedValues | IReadOnlySet<Object> | The values disallowed for the model. |
Properties
Section titled “Properties”DisallowedValues
Section titled “DisallowedValues”public IReadOnlySet<object?> DisallowedValues { get; }
Summary
Section titled “Summary”Gets the values disallowed for the model.
AllowedValues
Section titled “AllowedValues”public IReadOnlySet<object?> AllowedValues { get; }
Summary
Section titled “Summary”Gets the values allowed for the model.
Methods
Section titled “Methods”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)