Skip to content

EnrichmentFactory

public sealed class EnrichmentFactory

Namespace: RhoMicro.BindSight.Enrichments

Inheritance:

Creates enrichments.

public EnrichmentFactory(IServiceProvider services)

Creates enrichments.

NameTypeDescription
servicesIServiceProviderThe service collection to resolve enrichments instances from.
public T CreateEnrichment<T>(OptionsModel model) where T : IOptionsModelEnrichment<T>

Creates an enrichment of type T.

NameDescriptionConstraints
TThe type of enrichment to create.IOptionsModelEnrichment<T>
NameTypeDescription
modelOptionsModelThe model to create an enrichment for.

The created enrichment.

public T CreateEnrichment<T>(OptionsModelChild child) where T : IOptionsModelChildEnrichment<T>

Creates an enrichment of type T.

NameDescriptionConstraints
TThe type of enrichment to create.IOptionsModelChildEnrichment<T>
NameTypeDescription
childOptionsModelChildThe model to create an enrichment for.

The created enrichment.

public T CreateEnrichment<T>(OptionsModelRoot root) where T : IOptionsModelRootEnrichment<T>

Creates an enrichment of type T.

NameDescriptionConstraints
TThe type of enrichment to create.IOptionsModelRootEnrichment<T>
NameTypeDescription
rootOptionsModelRootThe model to create an enrichment for.

The created enrichment.