Skip to content

PipelinedBindSightGeneratorOptionsProvider

public sealed class PipelinedBindSightGeneratorOptionsProvider

Namespace: RhoMicro.BindSight.Generators

Inheritance:

Provides generator options using options transformed by TransformationPipeline.

PipelinedBindSightGeneratorOptionsProvider(IBindSightGeneratorOptions, IEnumerable<ServiceDescriptor>, IConfigurationRoot, TransformationPipeline, EnrichmentFactory)
Section titled “PipelinedBindSightGeneratorOptionsProvider(IBindSightGeneratorOptions, IEnumerable<ServiceDescriptor>, IConfigurationRoot, TransformationPipeline, EnrichmentFactory)”
public PipelinedBindSightGeneratorOptionsProvider(IBindSightGeneratorOptions optionsDocsGeneratorOptions, IEnumerable<ServiceDescriptor> services, IConfigurationRoot configuration, TransformationPipeline pipeline, EnrichmentFactory enrichmentFactory)

Provides generator options using options transformed by TransformationPipeline.

NameTypeDescription
configurationIConfigurationRootThe configuration root to extract configuration providers from.
enrichmentFactoryEnrichmentFactoryThe enrichment factory to pass to created models.
optionsDocsGeneratorOptionsIBindSightGeneratorOptionsThe options to use.
pipelineTransformationPipelineThe transformation pipeline to use when transforming option models.
servicesIEnumerable<ServiceDescriptor>The list of services to extract options from.
public ValueTask<IBindSightGeneratorOptions> GetOptions([CancellationToken cancellationToken = default(CancellationToken)])

Gets the options to use.

NameTypeDescription
cancellationTokenCancellationTokenThe cancellation token used to request options retrieval to be cancelled.

A task, that, upon completion, will contain the options to use.