MSL.Plumber.Diagnostics
5.1.1
dotnet add package MSL.Plumber.Diagnostics --version 5.1.1
NuGet\Install-Package MSL.Plumber.Diagnostics -Version 5.1.1
<PackageReference Include="MSL.Plumber.Diagnostics" Version="5.1.1" />
<PackageVersion Include="MSL.Plumber.Diagnostics" Version="5.1.1" />
<PackageReference Include="MSL.Plumber.Diagnostics" />
paket add MSL.Plumber.Diagnostics --version 5.1.1
#r "nuget: MSL.Plumber.Diagnostics, 5.1.1"
#:package MSL.Plumber.Diagnostics@5.1.1
#addin nuget:?package=MSL.Plumber.Diagnostics&version=5.1.1
#tool nuget:?package=MSL.Plumber.Diagnostics&version=5.1.1

Plumber
Another weapon from the MSL Armory
Middleware pipelines for host-free .NET projects. Plumber brings the ASP.NET Core middleware model — a request, a response, and a chain of steps with dependency injection and configuration — to .NET projects that run without a host: console apps, AWS Lambdas, Azure Functions, queue consumers, file processors, and similar workloads.
The wiki is the full documentation: concepts, a tutorial, per-type reference, and deployment recipes.
Packages
MSL.Plumber.Pipeline— the core builder, handler, middleware, and request context. See Pipeline.MSL.Plumber.Pipeline.Testing—PlumberApplicationFactoryfor exercising a real pipeline in tests. See Testing.MSL.Plumber.Serilog.Extensions— per-request Serilog request logging. See Serilog Extensions.MSL.Plumber.Diagnostics— per-request OpenTelemetry tracing and metrics middleware. See Diagnostics.
Install
dotnet add package MSL.Plumber.Pipeline
Plumber targets .NET 10.
Hello, World
using Plumber;
using var handler = RequestHandlerBuilder
.Create<string, string>()
.Build();
handler.Use((context, next) =>
{
context.Response = $"Hello, {context.Request}!";
return next(context);
});
var greeting = await handler.InvokeAsync("World");
Console.WriteLine(greeting); // Hello, World!
A Plumber application has four pieces: a builder, the handler it builds, one or more middleware, and an InvokeAsync call. Each invocation gets its own dependency injection scope and cancellation token.
Where to go next
- New to middleware pipelines? Start with Concepts, then the Tutorial.
- Know the shape already? Jump into Building a pipeline, Middleware, and Request lifecycle.
- Looking for a specific scenario? Browse the recipes — AWS Lambda, Azure Functions, queue consumers, webhooks, and more — from the wiki home.
- Migrating from an earlier version? See Migration. v5 makes no breaking changes; v4 and v3 are covered with before-and-after examples.
Repository · NuGet — Pipeline · NuGet — Testing · MIT License · Report an issue
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.Configuration.CommandLine (>= 10.0.9)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.9)
- Microsoft.Extensions.Configuration.Json (>= 10.0.9)
- Microsoft.Extensions.Configuration.UserSecrets (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- MSL.Plumber.Pipeline (>= 5.1.1)
- Ulid (>= 1.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.