Table of Contents

UseConsoleStartup Method

Definition

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

UseConsoleStartup<TStartup>(IHostBuilder)

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

public static IHostBuilder UseConsoleStartup<TStartup>(this IHostBuilder hostBuilder) where TStartup : ConsoleStartup

Parameters

hostBuilder IHostBuilder

The IHostBuilder to configure.

Returns

IHostBuilder

The same instance of the IHostBuilder for chaining.

Type Parameters

TStartup

The type containing the startup methods for the application.