Table of Contents

Class MinimalConsoleProgram

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

The base entry point of an application optimized for console applications.

public abstract class MinimalConsoleProgram : ProgramRoot
Inheritance
MinimalConsoleProgram

Methods

CreateHostBuilder(String[])

Creates an HostApplicationBuilder used to set up the host.

protected static HostApplicationBuilder CreateHostBuilder(string[] args)

Parameters

args String[]

The command line arguments.

Returns

HostApplicationBuilder

The initialized HostApplicationBuilder.

RunAsync(IServiceProvider, CancellationToken)

A convenient method for executing fire-and-forget code.

public abstract Task RunAsync(IServiceProvider serviceProvider, CancellationToken cancellationToken)

Parameters

serviceProvider IServiceProvider

The IServiceProvider to retrieve services from.

cancellationToken CancellationToken

Indicates that the run has been aborted.

Returns

Task