ForgeTrust.Runnable.Core/RunnableStartup.cs

RunnableStartup

Type

RunnableStartup

Provides a base implementation for starting and running applications with module support.
Method

GetStartupLogger()

Provides an named after the concrete startup type.
Type

RunnableStartup

An abstract base class for initializing a Runnable application with a specific root module.
Method

IRunnableStartup.RunAsync(StartupContext)

Runs the startup sequence using the provided startup context.
Method

IRunnableStartup.CreateHostBuilder(StartupContext)

Creates an IHostBuilder configured for the provided startup context.
Method

RunAsync(string[])

Starts the application's run sequence using the specified command-line arguments.
Method

RunAsync(StartupContext)

Runs the host configured by the provided startup context and logs lifecycle events.
Logs a warning if shutdown is cancelled or does not complete in time. On an unhandled exception logs a critical error and sets Environment.ExitCode to -100.
Method

CreateHost(StartupContext)

Builds an from the host builder configured for the provided startup context.
Method

CreateHostBuilderCore(StartupContext)

Create and configure a host builder using values from the provided startup context.
Method

CreateRootModule()

Creates a new instance of the root module.
Method

ConfigureServicesForAppType(StartupContext, IServiceCollection)

Registers services required for the specific application type (for example, web or worker) into the provided service collection.
Method

ConfigureBuilderForAppType(StartupContext, IHostBuilder)

Allows the startup to customize the host builder for the specific application type.