UseBootstrapperEnvironmentDefaults Method
Definition
- Namespace
- Codebelt.Bootstrapper
- Assemblies
- Codebelt.Bootstrapper.dll
UseBootstrapperEnvironmentDefaults<TStartup>(IHostBuilder)
Adds conventional environment defaults for local development.
public static IHostBuilder UseBootstrapperEnvironmentDefaults<TStartup>(this IHostBuilder hostBuilder) where TStartup : StartupRoot
Parameters
hostBuilderIHostBuilderThe IHostBuilder to configure.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.
Type Parameters
TStartupThe type of the startup class used to resolve user secrets.
Remarks
When the current environment is local development, this method adds user secrets for TStartup to the application configuration.