Pisum.Infrastructure (1.4.0)
Published 2026-04-14 12:46:04 +02:00 by mschnecke
Installation
dotnet nuget add source --name pisum --username your_username --password your_token dotnet add package --source pisum --version 1.4.0 Pisum.InfrastructureAbout this package
ASP.NET Infrastructure Library.
Pisum.Infrastructure
ASP.NET Core infrastructure library providing common components and utilities for Pisum ecosystem applications.
Installation
dotnet add package Pisum.Infrastructure
Quick Start
var builder = WebApplication.CreateBuilder(args);
// Add infrastructure services
builder.Services.AddPisumInfrastructure();
var app = builder.Build();
// Use infrastructure middleware
app.UsePisumInfrastructure();
app.Run();
Features
ApplicationInformation
Automatically exposes application metadata from assembly attributes via the options pattern.
app.MapGet("/info", (IOptions<ApplicationInformation> options) => new
{
Title = options.Value.Title,
Version = options.Value.Version,
Copyright = options.Value.Copyright
});
Properties:
Title- Product name from assemblyVersion- Product version from assemblyCopyright- Legal copyright from assembly
Extension Methods:
AddPisumInfrastructure()- Registers all infrastructure servicesConfigureApplicationInformation()- Registers ApplicationInformation onlyUsePisumInfrastructure()- Configures infrastructure middleware
Target Frameworks
- .NET 8.0
- .NET 10.0
License
Copyright (c) 2026 pisum.net
Dependencies
Details
2026-04-14 12:46:04 +02:00
Assets (2)
Versions (3)
View all
NuGet
0
pisum.net
31 KiB
pisum.infrastructure.nuspec
2.8 KiB