OptionsServiceCollectionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for adding options services to the DI container.
public ref class OptionsServiceCollectionExtensions abstract sealed
public static class OptionsServiceCollectionExtensions
type OptionsServiceCollectionExtensions = class
Public Module OptionsServiceCollectionExtensions
- Inheritance
-
OptionsServiceCollectionExtensions
Methods
AddOptions(IServiceCollection) |
Adds services required for using options. |
AddOptions<TOptions>(IServiceCollection, String) |
Gets an options builder that forwards |
AddOptions<TOptions>(IServiceCollection) |
Gets an options builder that forwards |
AddOptionsWithValidateOnStart<TOptions,TValidateOptions>(IServiceCollection, String) |
Adds services required for using options and enforces options validation check on start rather than at run time. |
AddOptionsWithValidateOnStart<TOptions>(IServiceCollection, String) |
Adds services required for using options and enforces options validation check on start rather than at run time. |
Configure<TOptions>(IServiceCollection, Action<TOptions>) |
Registers an action used to configure a particular type of options once during startup. This is run before PostConfigure<TOptions>(IServiceCollection, Action<TOptions>). Updates to the configuration does not invoke the action again. |
Configure<TOptions>(IServiceCollection, String, Action<TOptions>) |
Registers an action used to configure a particular type of options. These are run before PostConfigure<TOptions>(IServiceCollection, Action<TOptions>). |
ConfigureAll<TOptions>(IServiceCollection, Action<TOptions>) |
Registers an action used to configure all instances of a particular type of options. |
ConfigureOptions(IServiceCollection, Object) |
Registers an object that will have all of its |
ConfigureOptions(IServiceCollection, Type) |
Registers a type that will have all of its |
ConfigureOptions<TConfigureOptions>(IServiceCollection) |
Registers a type that will have all of its |
PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) |
Registers an action used to initialize a particular type of options. These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>). |
PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>) |
Registers an action used to configure a particular type of options. These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>). |
PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>) |
Registers an action used to post configure all instances of a particular type of options. These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>). |