pisum

Pisum.Infrastructure (1.3.0)

Published 2026-04-14 12:21:10 +02:00 by mschnecke

Installation

dotnet nuget add source --name pisum --username your_username --password your_token 
dotnet add package --source pisum --version 1.3.0 Pisum.Infrastructure

About 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 assembly
  • Version - Product version from assembly
  • Copyright - Legal copyright from assembly

Extension Methods:

  • AddPisumInfrastructure() - Registers all infrastructure services
  • ConfigureApplicationInformation() - Registers ApplicationInformation only
  • UsePisumInfrastructure() - Configures infrastructure middleware

Target Frameworks

  • .NET 8.0
  • .NET 10.0

License

Copyright (c) 2026 pisum.net

Dependencies

ID Version Target Framework
AspNetCore.HealthChecks.ApplicationStatus 9.0.0 net10.0
NetEscapades.AspNetCore.SecurityHeaders 1.3.1 net10.0
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.2 net10.0
OpenTelemetry.Extensions.Hosting 1.15.2 net10.0
OpenTelemetry.Instrumentation.AspNetCore 1.15.1 net10.0
OpenTelemetry.Instrumentation.Http 1.15.0 net10.0
OpenTelemetry.Instrumentation.Runtime 1.15.0 net10.0
Serilog.AspNetCore 10.0.0 net10.0
Serilog.Sinks.OpenTelemetry 4.2.0 net10.0
AspNetCore.HealthChecks.ApplicationStatus 9.0.0 net8.0
NetEscapades.AspNetCore.SecurityHeaders 1.3.1 net8.0
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.2 net8.0
OpenTelemetry.Extensions.Hosting 1.15.2 net8.0
OpenTelemetry.Instrumentation.AspNetCore 1.15.1 net8.0
OpenTelemetry.Instrumentation.Http 1.15.0 net8.0
OpenTelemetry.Instrumentation.Runtime 1.15.0 net8.0
Serilog.AspNetCore 10.0.0 net8.0
Serilog.Sinks.OpenTelemetry 4.2.0 net8.0
Details
NuGet
2026-04-14 12:21:10 +02:00
0
pisum.net
31 KiB
Assets (2)
Versions (3) View all
1.5.0 2026-04-14
1.4.0 2026-04-14
1.3.0 2026-04-14