Skip to content

RootExclusionOptionsConfiguration

public class RootExclusionOptionsConfiguration

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Provides configuration for the registration of IRootExclusionOptions instances to IServiceCollection instances.

public RootExclusionOptionsConfiguration(bool tryAdd)

Initializes a new instance.

UseDefaultOptions(string, ServiceLifetime)
Section titled “UseDefaultOptions(string, ServiceLifetime)”
public RootExclusionOptionsConfiguration UseDefaultOptions([string configurationSection = "RootExclusionOptions"], [ServiceLifetime lifetime = Singleton])

Registers an implementation of IRootExclusionOptions based on IOptions<TOptions>.

NameTypeDescription
configurationSectionStringThe configuration section to bind the options instance against.
lifetimeServiceLifetimeThe lifetime to register the options implementation with.

A reference to the configuration, for chaining of further method calls.

UseSnapshotOptions(string, ServiceLifetime)
Section titled “UseSnapshotOptions(string, ServiceLifetime)”
public RootExclusionOptionsConfiguration UseSnapshotOptions([string configurationSection = "RootExclusionOptions"], [ServiceLifetime lifetime = Scoped])

Registers an implementation of IRootExclusionOptions based on IOptionsSnapshot<TOptions>.

NameTypeDescription
configurationSectionStringThe configuration section to bind the options instance against.
lifetimeServiceLifetimeThe lifetime to register the options implementation with.

A reference to the configuration, for chaining of further method calls.

UseMonitorOptions(string, ServiceLifetime)
Section titled “UseMonitorOptions(string, ServiceLifetime)”
public RootExclusionOptionsConfiguration UseMonitorOptions([string configurationSection = "RootExclusionOptions"], [ServiceLifetime lifetime = Singleton])

Registers an implementation of IRootExclusionOptions based on IOptionsMonitor<TOptions>.

NameTypeDescription
configurationSectionStringThe configuration section to bind the options instance against.
lifetimeServiceLifetimeThe lifetime to register the options implementation with.

A reference to the configuration, for chaining of further method calls.

UseCustomOptions(Func<IServiceProvider, IRootExclusionOptions>, ServiceLifetime)
Section titled “UseCustomOptions(Func<IServiceProvider, IRootExclusionOptions>, ServiceLifetime)”
public RootExclusionOptionsConfiguration UseCustomOptions(Func<IServiceProvider, IRootExclusionOptions> factory, [ServiceLifetime lifetime = Singleton])

Registers a custom implementation of IRootExclusionOptions.

NameTypeDescription
The lifetime of the custom IRootExclusionOptions registration.
factoryFunc<IServiceProvider, IRootExclusionOptions>The delegate to register as the factory for instances of IRootExclusionOptions.

A reference to the configuration, for chaining of further method calls.