Skip to content

GeneratorsRegistrations

public sealed class GeneratorsRegistrations

Namespace: RhoMicro.BindSight.Generators

Inheritance:

Wraps an BindSightBuilder for registering options docs generators.

public GeneratorsRegistrations(BindSightBuilder optionsDocs)

Wraps an BindSightBuilder for registering options docs generators.

NameTypeDescription
optionsDocsBindSightBuilderThe BindSightBuilder to wrap.
public BindSightBuilder BindSight { get; }

Gets the wrapped BindSightBuilder.

public GeneratorsRegistrations AddGenerator<TGenerator>() where TGenerator : class, IBindSightGenerator

Adds a generator to generate docs with.

NameDescriptionConstraints
TGeneratorThe type of generator to register.class, IBindSightGenerator

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

public GeneratorsRegistrations AddLogging()

Adds the LoggingBindSightGenerator for logging all detected options.

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

AddJsonSchemata(Action<JsonSchemaGeneratorOptionsConfiguration>)
Section titled “AddJsonSchemata(Action<JsonSchemaGeneratorOptionsConfiguration>)”
public GeneratorsRegistrations AddJsonSchemata([Action<JsonSchemaGeneratorOptionsConfiguration>? configure = null])

Adds the JsonSchemaGenerator for generating json schemata of options.

NameTypeDescription
configureAction<JsonSchemaGeneratorOptionsConfiguration>ServiceCollectionExtensions.TryAddJsonSchemaGeneratorOptions

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

AddReadme(Action<ReadmeGeneratorOptionsConfiguration>)
Section titled “AddReadme(Action<ReadmeGeneratorOptionsConfiguration>)”
public GeneratorsRegistrations AddReadme([Action<ReadmeGeneratorOptionsConfiguration>? configure = null])

Adds the ReadmeGenerator for generating a readme of options.

NameTypeDescription
configureAction<ReadmeGeneratorOptionsConfiguration>ServiceCollectionExtensions.TryAddReadmeGeneratorOptions

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

public GeneratorsRegistrations AddDefaults()

Adds default generators.

The generators added are:

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