Namespace Codebelt.Bootstrapper
The Codebelt.Bootstrapper
namespace offers core types of this lightweight boostrapper framework optimized for console applicationss, providing a uniform and consistent implementation of console-, worker-, web-, mvc-, webapp- and webapi-project types.
Availability: .NET 9 and .NET 8
Extension Methods
Type | Ext | Methods |
---|---|---|
HostApplicationBuilder | ⬇️ | UseBootstrapperLifetime |
IHostBuilder | ⬇️ | UseBootstrapperLifetime , UseBootstrapperStartup |
IHostedService | ⬇️ | WaitForApplicationStartedAnnouncementAsync |
Classes
- BootstrapperLifetime
Listens for Ctrl+C or SIGTERM and initiates shutdown.
- BootstrapperLogMessages
Provides centralized logging messages for the Bootstrapper SDK using the LoggerMessage pattern. This API supports the product infrastructure and is not intended to be used directly from your code.
- HostApplicationBuilderExtensions
Extension methods for the IHostApplicationBuilder.
- HostBuilderExtensions
Extension methods for the IHostBuilder.
- ProgramRoot
The base entry point of an application.
- ProgramRoot<TStartup>
The base entry point of an application responsible for registering its StartupRoot partner.
- StartupFactory<TStartup>
The default implementation of IStartupFactory<TStartup>.
- StartupRoot
Provides the base class of a conventional based
Startup
class.
Interfaces
- IHostLifetimeEvents
Provides a convenient way to be notified of host lifetime events.
- IStartupFactory<TStartup>
Provides an interface for initializing services and middleware used by an application.