JsonSchemaGeneratorOptionsConfiguration
public class JsonSchemaGeneratorOptionsConfiguration
Namespace: RhoMicro.BindSight.Generators
Inheritance:
Summary
Section titled “Summary”Provides configuration for the registration of IJsonSchemaGeneratorOptions instances to IServiceCollection instances.
Constructors
Section titled “Constructors”JsonSchemaGeneratorOptionsConfiguration(bool)
Section titled “JsonSchemaGeneratorOptionsConfiguration(bool)”public JsonSchemaGeneratorOptionsConfiguration(bool tryAdd)
Summary
Section titled “Summary”Initializes a new instance.
Methods
Section titled “Methods”UseDefaultOptions(string, ServiceLifetime)
Section titled “UseDefaultOptions(string, ServiceLifetime)”public JsonSchemaGeneratorOptionsConfiguration UseDefaultOptions([string configurationSection = "JsonSchemaGeneratorOptions"], [ServiceLifetime lifetime = Singleton])
Summary
Section titled “Summary”Registers an implementation of IJsonSchemaGeneratorOptions based on IOptions<TOptions>.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
configurationSection | String | The configuration section to bind the options instance against. |
lifetime | ServiceLifetime | The lifetime to register the options implementation with. |
Returns
Section titled “Returns”A reference to the configuration, for chaining of further method calls.
UseSnapshotOptions(string, ServiceLifetime)
Section titled “UseSnapshotOptions(string, ServiceLifetime)”public JsonSchemaGeneratorOptionsConfiguration UseSnapshotOptions([string configurationSection = "JsonSchemaGeneratorOptions"], [ServiceLifetime lifetime = Scoped])
Summary
Section titled “Summary”Registers an implementation of IJsonSchemaGeneratorOptions based on IOptionsSnapshot<TOptions>.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
configurationSection | String | The configuration section to bind the options instance against. |
lifetime | ServiceLifetime | The lifetime to register the options implementation with. |
Returns
Section titled “Returns”A reference to the configuration, for chaining of further method calls.
UseMonitorOptions(string, ServiceLifetime)
Section titled “UseMonitorOptions(string, ServiceLifetime)”public JsonSchemaGeneratorOptionsConfiguration UseMonitorOptions([string configurationSection = "JsonSchemaGeneratorOptions"], [ServiceLifetime lifetime = Singleton])
Summary
Section titled “Summary”Registers an implementation of IJsonSchemaGeneratorOptions based on IOptionsMonitor<TOptions>.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
configurationSection | String | The configuration section to bind the options instance against. |
lifetime | ServiceLifetime | The lifetime to register the options implementation with. |
Returns
Section titled “Returns”A reference to the configuration, for chaining of further method calls.
UseCustomOptions(Func<IServiceProvider, IJsonSchemaGeneratorOptions>, ServiceLifetime)
Section titled “UseCustomOptions(Func<IServiceProvider, IJsonSchemaGeneratorOptions>, ServiceLifetime)”public JsonSchemaGeneratorOptionsConfiguration UseCustomOptions(Func<IServiceProvider, IJsonSchemaGeneratorOptions> factory, [ServiceLifetime lifetime = Singleton])
Summary
Section titled “Summary”Registers a custom implementation of IJsonSchemaGeneratorOptions.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
“ | The lifetime of the custom IJsonSchemaGeneratorOptions registration. | |
factory | Func<IServiceProvider, IJsonSchemaGeneratorOptions> | The delegate to register as the factory for instances of IJsonSchemaGeneratorOptions. |
Returns
Section titled “Returns”A reference to the configuration, for chaining of further method calls.