UseConsoleStartup Method
Definition
- Namespace
- Codebelt.Bootstrapper.Console
- Assemblies
- Codebelt.Bootstrapper.Console.dll
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
hostBuilderIHostBuilderThe IHostBuilder to configure.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.
Type Parameters
TStartupThe type containing the startup methods for the application.