Pisum.Infrastructure 1.2.0
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
No packages depend on Pisum.Infrastructure.
.NET 8.0
- AspNetCore.HealthChecks.ApplicationStatus (>= 9.0.0)
- NetEscapades.AspNetCore.SecurityHeaders (>= 1.3.1)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.14.0)
- OpenTelemetry.Extensions.Hosting (>= 1.14.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.14.0)
- OpenTelemetry.Instrumentation.Http (>= 1.14.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.14.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
.NET 10.0
- AspNetCore.HealthChecks.ApplicationStatus (>= 9.0.0)
- NetEscapades.AspNetCore.SecurityHeaders (>= 1.3.1)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.14.0)
- OpenTelemetry.Extensions.Hosting (>= 1.14.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.14.0)
- OpenTelemetry.Instrumentation.Http (>= 1.14.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.14.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
| Version | Downloads | Last updated |
|---|---|---|
| 1.2.0 | 182 | 01/16/2026 |
| 1.1.0 | 206 | 12/24/2025 |
| 1.0.0 | 2 | 12/24/2025 |
| 1.0.0-preview | 2 | 12/24/2025 |