Table of Contents

UseBootstrapperProgram Method

Definition

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

UseBootstrapperProgram(IHostApplicationBuilder, Type)

Provides an implementation of a conventional based IProgramFactory.

public static IHostApplicationBuilder UseBootstrapperProgram(this IHostApplicationBuilder hostBuilder, Type minimalConsoleProgramType)

Parameters

hostBuilder IHostApplicationBuilder

The IHostApplicationBuilder to configure.

minimalConsoleProgramType Type

The Type that must be assignable from MinimalConsoleProgram.

Returns

IHostApplicationBuilder

The same instance of the IHostApplicationBuilder for chaining.