Table of Contents

UseBootstrapperEnvironmentDefaults Method

Definition

Namespace
Codebelt.Bootstrapper
Assemblies
Codebelt.Bootstrapper.dll
Source
src/Codebelt.Bootstrapper/HostApplicationBuilderExtensions.cs

UseBootstrapperEnvironmentDefaults(IHostApplicationBuilder)

Adds conventional environment defaults for local development.

public static IHostApplicationBuilder UseBootstrapperEnvironmentDefaults(this IHostApplicationBuilder hostBuilder)

Parameters

hostBuilder IHostApplicationBuilder

The 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.