Class HostBuilderExtensions
- Namespace
- Codebelt.Bootstrapper
- Assembly
- Codebelt.Bootstrapper.dll
Extension methods for the IHostBuilder.
public static class HostBuilderExtensions
- Inheritance
-
HostBuilderExtensions
Methods
UseBootstrapperLifetime(IHostBuilder)
Listens for Ctrl+C or SIGTERM and calls StopApplication() to start the shutdown process.
public static IHostBuilder UseBootstrapperLifetime(this IHostBuilder hostBuilder)
Parameters
hostBuilder
IHostBuilderThe IHostBuilder to configure.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.
Remarks
Complements the default implementation of ConsoleLifetime.
UseBootstrapperStartup<TStartup>(IHostBuilder)
Provides an implementation of a conventional based IStartupFactory<TStartup>.
public static IHostBuilder UseBootstrapperStartup<TStartup>(this IHostBuilder hostBuilder)
where TStartup : StartupRoot
Parameters
hostBuilder
IHostBuilderThe IHostBuilder to configure.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.
Type Parameters
TStartup