Skip to content

BindSightBuilder

public sealed class BindSightBuilder

Namespace: RhoMicro.BindSight.Services

Inheritance:

Wraps a service collection for registering and configuring options docs generation.

public BindSightBuilder(IServiceCollection services)

Initializes a new instance.

NameTypeDescription
servicesIServiceCollectionThe service collection to wrap.
public IServiceCollection Services { get; }

Gets the wrapped service collection.

public GeneratorsRegistrations Generators { get; }

Gets an object for adding options docs generators to the service collection.

public TransformationPipelineBuilder TransformationPipeline { get; }

Gets an object for adding option model transformations to the service collection.

public BindSightBuilder AddHostedService()

Adds a hosted service to the service collection for running the options docs runner on application startup.

A reference to this builder, for chaining of further method calls.

public BindSightBuilder AddDefaults()

Adds default transformations and generators.

A reference to this builder, for chaining of further method calls.