Skip to content

ChildKeyEnrichment

public sealed class ChildKeyEnrichment

Namespace: RhoMicro.BindSight.Enrichments

Inheritance:

Enriches instances of OptionsModelChild with the configuration keys they are bound against.

ChildKeyEnrichment(OptionsModelChild, string, bool)
Section titled “ChildKeyEnrichment(OptionsModelChild, string, bool)”
public ChildKeyEnrichment(OptionsModelChild child, string key, bool combineWithParent)

Enriches instances of OptionsModelChild with the configuration keys they are bound against.

NameTypeDescription
childOptionsModelChildThe enriched child.
combineWithParentBooleanIndicates whether to combine key with the key against which child.OptionsModelChild.Parentis bound.
keyStringThe key against which the child is bound.
public string Key { get; }

Gets the key of the child.

Create(IServiceProvider, OptionsModelChild)
Section titled “Create(IServiceProvider, OptionsModelChild)”
public static ChildKeyEnrichment Create(IServiceProvider services, OptionsModelChild child)