Skip to content

ChildExclusionOptionsConfiguration

public class ChildExclusionOptionsConfiguration

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

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

public ChildExclusionOptionsConfiguration(bool tryAdd)

Initializes a new instance.

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

Registers an implementation of IChildExclusionOptions 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 ChildExclusionOptionsConfiguration UseSnapshotOptions([string configurationSection = "ChildExclusionOptions"], [ServiceLifetime lifetime = Scoped])

Registers an implementation of IChildExclusionOptions 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 ChildExclusionOptionsConfiguration UseMonitorOptions([string configurationSection = "ChildExclusionOptions"], [ServiceLifetime lifetime = Singleton])

Registers an implementation of IChildExclusionOptions 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, IChildExclusionOptions>, ServiceLifetime)
Section titled “UseCustomOptions(Func<IServiceProvider, IChildExclusionOptions>, ServiceLifetime)”
public ChildExclusionOptionsConfiguration UseCustomOptions(Func<IServiceProvider, IChildExclusionOptions> factory, [ServiceLifetime lifetime = Singleton])

Registers a custom implementation of IChildExclusionOptions.

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

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