UseBootstrapperEnvironmentDefaults Method
Definition
- Namespace
- Codebelt.Bootstrapper
- Assemblies
- Codebelt.Bootstrapper.dll
UseBootstrapperEnvironmentDefaults(IHostApplicationBuilder)
Adds conventional environment defaults for local development.
public static IHostApplicationBuilder UseBootstrapperEnvironmentDefaults(this IHostApplicationBuilder hostBuilder)
Parameters
hostBuilderIHostApplicationBuilderThe IHostApplicationBuilder to configure.
Returns
- IHostApplicationBuilder
The same instance of the IHostApplicationBuilder for chaining.
Remarks
When the current environment is local development, this method attempts to resolve the application assembly from ApplicationName and adds user secrets to IConfigurationBuilder. If the application assembly cannot be resolved, the operation is ignored.