OptionsServiceCollectionExtensions extension
Extension methods for adding options services to the DI container.
Methods
-
addOptions<
TOptions> (OptionsImplementationFactory< TOptions> instance, {String name = Options.defaultName}) → OptionsBuilder<TOptions> -
Available on ServiceCollection, provided by the OptionsServiceCollectionExtensions extension
Adds services required for using options. -
configure<
TOptions> (OptionsImplementationFactory< TOptions> instance, ConfigureOptionsAction<TOptions> configureOptions, {String? name}) → ServiceCollection -
Available on ServiceCollection, provided by the OptionsServiceCollectionExtensions extension
Registers an action used to configure a particular type of options. -
configureAll<
TOptions> (OptionsImplementationFactory< TOptions> instance, ConfigureOptionsAction<TOptions> configureOptions, {String? name}) → ServiceCollection -
Available on ServiceCollection, provided by the OptionsServiceCollectionExtensions extension
Registers an action used to configure all instances of a particular type of options. -
postConfigure<
TOptions> (String name, OptionsImplementationFactory< TOptions> instance, PostConfigureActionT0<TOptions> configureOptions) → ServiceCollection -
Available on ServiceCollection, provided by the OptionsServiceCollectionExtensions extension
Registers an action used to configure a particular type of options.