Codebelt.Bootstrapper
3.0.0-preview.2
See the version list below for details.
dotnet add package Codebelt.Bootstrapper --version 3.0.0-preview.2
NuGet\Install-Package Codebelt.Bootstrapper -Version 3.0.0-preview.2
<PackageReference Include="Codebelt.Bootstrapper" Version="3.0.0-preview.2" />
paket add Codebelt.Bootstrapper --version 3.0.0-preview.2
#r "nuget: Codebelt.Bootstrapper, 3.0.0-preview.2"
// Install Codebelt.Bootstrapper as a Cake Addin #addin nuget:?package=Codebelt.Bootstrapper&version=3.0.0-preview.2&prerelease // Install Codebelt.Bootstrapper as a Cake Tool #tool nuget:?package=Codebelt.Bootstrapper&version=3.0.0-preview.2&prerelease
About
An open-source family of assemblies (MIT license) that provide a uniform and consistent way of bootstraping your code with Program.cs
paired with Startup.cs
.
Also, common for all, is the implementation of the IHostedService
interface; this means that all project types, including the traditional console
, now have option for graceful shutdown should your application require this (cronjob scenarios or similar).
It is, by heart, free, flexible and built to extend and boost your agile codebelt.
Codebelt.Bootstrapper
The core types of this lightweight boostrapper framework optimized for console apps, providing a uniform and consistent implementation of:
-project types.
Related Packages
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
-
net8.0
- Cuemon.Core (>= 9.0.0-preview.11)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Hosting (>= 8.0.1)
-
net9.0
- Cuemon.Core (>= 9.0.0-preview.11)
- Microsoft.Extensions.Configuration (>= 9.0.0-rc.2.24473.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0-rc.2.24473.5)
- Microsoft.Extensions.Hosting (>= 9.0.0-rc.2.24473.5)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Codebelt.Bootstrapper:
Package | Downloads |
---|---|
Codebelt.Bootstrapper.Web
An implementation optimized for web applications that is managed by its host. |
|
Codebelt.Bootstrapper.Worker
An implementation optimized for worker services that is managed by its host. |
|
Codebelt.Bootstrapper.Console
An implementation optimized for console applications that is managed by its host. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 98 | 11/13/2024 |
3.0.0-rc.1 | 48 | 11/11/2024 |
3.0.0-preview.2 | 50 | 10/13/2024 |
3.0.0-preview.1 | 44 | 10/7/2024 |
2.0.0 | 162 | 9/8/2024 |
1.3.0 | 255 | 2/11/2024 |
1.2.0 | 270 | 12/15/2023 |
1.1.0 | 903 | 11/9/2022 |
1.0.1 | 610 | 12/29/2021 |
1.0.0 | 673 | 5/7/2021 |
Version 3.0.0
Availability: .NET 9 and .NET 8
# ALM
- CHANGED Dependencies to latest and greatest with respect to TFMs
- REMOVED Support for TFM .NET 6 (LTS)
# Breaking Changes
- CHANGED UseBootstrapperStartup method on the HostBuilderExtensions class in the Codebelt.Bootstrapper namespace to be generic
- CHANGED IStartupFactory interface in the Codebelt.Bootstrapper namespace to be generic and reference an instance of TStartup
- CHANGED ProgramRoot class in the Codebelt.Bootstrapper namespace to have zero members
- CHANGED StartupFactory class in the Codebelt.Bootstrapper namespace to use generic IStartupFactory<TStartup> interface
# New Features
- ADDED HostedServiceExtensions class in the Codebelt.Bootstrapper namespace that consist of extension methods for the IHostedService interface: WaitForApplicationStartedAnnouncementAsync
- ADDED HostApplicationBuilderExtensions class in the Codebelt.Bootstrapper namespace that consist of extension methods for the IHostApplicationBuilder interface: UseBootstrapperLifetime
# Improvements
- CHANGED BootstrapperLifetime in the Codebelt.Bootstrapper namespace to support adhering to ConsoleLifetimeOptions
Version: 2.0.0
Availability: .NET 6.0 and .NET 8.0
# ALM
- REMOVED TFM for net7.0
- CHANGED Dependencies to latest and greatest with respect to TFMs
Version: 1.3.0
Availability: .NET 6.0, .NET 7.0, .NET 8.0
# ALM
- CHANGED Dependencies to latest and greatest
Version: 1.2.0
Availability: .NET 6.0, .NET 7.0, .NET 8.0
# ALM
- ADDED TFM for net8.0
- CHANGED Dependencies to latest and greatest with respect to TFMs
Version: 1.1.0
Availability: .NET 6.0, .NET 7.0
# ALM
- ADDED TFM for .NET 7
- CHANGED Dependencies to latest and greatest with respect to TFM
Version: 1.0.1
Availability: .NET 5.0, .NET 6.0
# ALM
- ADDED TFM for .NET 6
- CHANGED Dependencies to latest and greatest with respect to TFM
Version: 1.0.0
Availability: .NET 5.0
# New Features
- ADDED BootstrapperLifetime class in the Codebelt.Bootstrapper namespace that listens for Ctrl+C or SIGTERM and initiates shutdown
- ADDED HostBuilderExtensions class in the Codebelt.Bootstrapper namespace that consist of extension methods for the IHostBuilder interface: UseBootstrapperLifetime, UseBootstrapperStartup
- ADDED IStartupFactory interface in the Codebelt.Bootstrapper namespace that provides an interface for initializing services and middleware used by an application
- ADDED ProgramRoot class in the Codebelt.Bootstrapper namespace that is the base entry point of an application responsible for registering its StartupRoot partner
- ADDED StartupFactory class in the Codebelt.Bootstrapper namespace that is the default implementation of IStartupFactory
- ADDED StartupRoot class in the Codebelt.Bootstrapper namespace that provides the base class of a conventional based Startup class