Skip to content

RootKeyEnrichment

public sealed class RootKeyEnrichment

Namespace: RhoMicro.BindSight.Enrichments

Inheritance:

Enriches instances of OptionsModelRoot with the configuration key they are bound against.

public RootKeyEnrichment(string key)

Enriches instances of OptionsModelRoot with the configuration key they are bound against.

NameTypeDescription
keyStringThe key against which the root is bound.
public string Key { get; }

Gets the key against which the root is bound.

Create(IServiceProvider, OptionsModelRoot)
Section titled “Create(IServiceProvider, OptionsModelRoot)”
public static RootKeyEnrichment Create(IServiceProvider services, OptionsModelRoot root)