AspNet.KickStarter
1.2.3
Prefix Reserved
dotnet add package AspNet.KickStarter --version 1.2.3
NuGet\Install-Package AspNet.KickStarter -Version 1.2.3
<PackageReference Include="AspNet.KickStarter" Version="1.2.3" />
paket add AspNet.KickStarter --version 1.2.3
#r "nuget: AspNet.KickStarter, 1.2.3"
// Install AspNet.KickStarter as a Cake Addin #addin nuget:?package=AspNet.KickStarter&version=1.2.3 // Install AspNet.KickStarter as a Cake Tool #tool nuget:?package=AspNet.KickStarter&version=1.2.3
AspNet.KickStarter
This library provides small helpers to reduce the repetitive code used to run AspNet Minimal API projects.
The AspNet.KickStarter
package can be used as a single reference to pull in all of the individual packages in the collection.
To reduce the dependencies the individual packages may be referenced instead.
AspNet.KickStarter.Core
This is the base library that provides theApiBuilder
.AspNet.KickStarter.AddIn.xxx
These are the packages that provide the extended functionality such as OpenTelemetry and FluentValidation.AspNet.KickStarter.CQRS
This provides a number of interfaces and classes to use when working with MediatR.AspNet.KickStarter.FunctionalResult
Includes functional result types.
ApiBuilder
This simplifies the bootstrapping code to run a minimal API with optional support for Serilog, FluentValidation, Prometheus metrics and Swagger.
The most basic use in a Program.cs file would be
await new ApiBuilder().Build(args).RunAsync();
For something more visible, add Swagger and some endpoints:
await new ApiBuilder().WithSwagger().WithHealthHandler().Build(args).RunAsync();
Many fluent extension methods are available through the AddIn packages to add extra functionality. Each extension may provide additional configuration parameters.
Further information about the extensions may be found in the readme for the AddIn package. See NuGet for the full list of AddIns.
await new ApiBuilder()
.WithSerilog()
.WithSwagger()
.WithHealthHandler()
.WithServices(builder => {...})
.WithEndpoints(app => {...})
.WithMappings(() => {...})
.WithOpenTelemetry()
.WithFluentValidationFromAssemblyContaining<T>()
.WithAdditionalConfiguration(builder => {...})
.Build(args)
.RunAsync();
IEndpointRouteBuilder Extensions
These extensions consolidate the AspNet extensions
app.MapXXX(route, handler)
.WithName(name)
.WithDescription(description)
.WithOpenApi()
into a single extension with parameters for the name and description.
MapXXX(route, name, description, handler)
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. |
-
net8.0
- AspNet.KickStarter.AddIn.AdditionalConfiguration (>= 1.2.3)
- AspNet.KickStarter.AddIn.ApplicationConfiguration (>= 1.2.3)
- AspNet.KickStarter.AddIn.Endpoints (>= 1.2.3)
- AspNet.KickStarter.AddIn.FluentValidation (>= 1.2.3)
- AspNet.KickStarter.AddIn.HealthHandler (>= 1.2.3)
- AspNet.KickStarter.AddIn.Mappings (>= 1.2.3)
- AspNet.KickStarter.AddIn.OpenTelemetry (>= 1.2.3)
- AspNet.KickStarter.AddIn.Serilog (>= 1.2.3)
- AspNet.KickStarter.AddIn.Services (>= 1.2.3)
- AspNet.KickStarter.AddIn.Swagger (>= 1.2.3)
- AspNet.KickStarter.CQRS (>= 1.2.3)
- AspNet.KickStarter.FunctionalResult (>= 1.2.3)
- AspNet.KickStarter.Tracing (>= 1.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.