Class HostBuilderExtensions
- Namespace
- Codebelt.Bootstrapper.Console
- Assembly
- Codebelt.Bootstrapper.Console.dll
Extension methods for the IHostBuilder.
public static class HostBuilderExtensions
- Inheritance
-
HostBuilderExtensions
Methods
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
IHostBuilderThe 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.