Table of Contents

UseBootstrapperEnvironmentDefaults Method

Definition

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

UseBootstrapperEnvironmentDefaults<TStartup>(IHostBuilder)

Adds conventional environment defaults for local development.

public static IHostBuilder UseBootstrapperEnvironmentDefaults<TStartup>(this IHostBuilder hostBuilder) where TStartup : StartupRoot

Parameters

hostBuilder IHostBuilder

The IHostBuilder to configure.

Returns

IHostBuilder

The same instance of the IHostBuilder for chaining.

Type Parameters

TStartup

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