ReadmeGeneratorOptionsConfiguration
public class ReadmeGeneratorOptionsConfiguration
Namespace: RhoMicro.BindSight.Generators
Inheritance:
Summary
Section titled “Summary”Provides configuration for the registration of IReadmeGeneratorOptions instances to IServiceCollection instances.
Constructors
Section titled “Constructors”ReadmeGeneratorOptionsConfiguration(bool)
Section titled “ReadmeGeneratorOptionsConfiguration(bool)”public ReadmeGeneratorOptionsConfiguration(bool tryAdd)
Summary
Section titled “Summary”Initializes a new instance.
Methods
Section titled “Methods”UseDefaultOptions(string, ServiceLifetime)
Section titled “UseDefaultOptions(string, ServiceLifetime)”public ReadmeGeneratorOptionsConfiguration UseDefaultOptions([string configurationSection = "ReadmeGeneratorOptions"], [ServiceLifetime lifetime = Singleton])
Summary
Section titled “Summary”Registers an implementation of IReadmeGeneratorOptions 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 ReadmeGeneratorOptionsConfiguration UseSnapshotOptions([string configurationSection = "ReadmeGeneratorOptions"], [ServiceLifetime lifetime = Scoped])
Summary
Section titled “Summary”Registers an implementation of IReadmeGeneratorOptions 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 ReadmeGeneratorOptionsConfiguration UseMonitorOptions([string configurationSection = "ReadmeGeneratorOptions"], [ServiceLifetime lifetime = Singleton])
Summary
Section titled “Summary”Registers an implementation of IReadmeGeneratorOptions 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, IReadmeGeneratorOptions>, ServiceLifetime)
Section titled “UseCustomOptions(Func<IServiceProvider, IReadmeGeneratorOptions>, ServiceLifetime)”public ReadmeGeneratorOptionsConfiguration UseCustomOptions(Func<IServiceProvider, IReadmeGeneratorOptions> factory, [ServiceLifetime lifetime = Singleton])
Summary
Section titled “Summary”Registers a custom implementation of IReadmeGeneratorOptions.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
“ | The lifetime of the custom IReadmeGeneratorOptions registration. | |
factory | Func<IServiceProvider, IReadmeGeneratorOptions> | The delegate to register as the factory for instances of IReadmeGeneratorOptions. |
Returns
Section titled “Returns”A reference to the configuration, for chaining of further method calls.