Table of Contents

Class HostApplicationBuilderExtensions

Namespace
Codebelt.Bootstrapper.Console
Assembly
Codebelt.Bootstrapper.Console.dll

Extension methods for the IHostApplicationBuilder.

public static class HostApplicationBuilderExtensions
Inheritance
HostApplicationBuilderExtensions

Methods

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.

UseMinimalConsoleProgram(IHostApplicationBuilder)

Provides an implementation of IHostedService that has the role of a console application.

public static IHostApplicationBuilder UseMinimalConsoleProgram(this IHostApplicationBuilder hostBuilder)

Parameters

hostBuilder IHostApplicationBuilder

The IHostApplicationBuilder to configure.

Returns

IHostApplicationBuilder

The same instance of the IHostApplicationBuilder for chaining.