Fluens.Web.Contexts
0.7.9
dotnet add package Fluens.Web.Contexts --version 0.7.9
NuGet\Install-Package Fluens.Web.Contexts -Version 0.7.9
<PackageReference Include="Fluens.Web.Contexts" Version="0.7.9" />
<PackageVersion Include="Fluens.Web.Contexts" Version="0.7.9" />
<PackageReference Include="Fluens.Web.Contexts" />
paket add Fluens.Web.Contexts --version 0.7.9
#r "nuget: Fluens.Web.Contexts, 0.7.9"
#:package Fluens.Web.Contexts@0.7.9
#addin nuget:?package=Fluens.Web.Contexts&version=0.7.9
#tool nuget:?package=Fluens.Web.Contexts&version=0.7.9
Fluens.Web.Contexts
CorrelationId propagation and context accessors for ASP.NET Core applications.
Installation
dotnet add package Fluens.Web.Contexts
Usage
app.UseCorrelation(); // Extracts/generates CorrelationId header
// Access in handlers
var correlationId = httpContext.GetCorrelationId();
var userId = httpContext.User.GetUserId();
GetUserId() reads the standard JWT "sub" claim, falling back to ClaimTypes.NameIdentifier
when "sub" is absent — this covers an auth stack whose token handler maps or issues
NameIdentifier instead. Fluens.Web.Auth's AddAuth() sets MapInboundClaims = false so its
own pipeline keeps "sub" intact and never needs the fallback.
CorrelationId is automatically propagated to outgoing HTTP calls when using Fluens.Web.Http.
UseCorrelation() is safe to run more than once over the same request - whether because the
pipeline re-executes (e.g. UseStatusCodePagesWithReExecute) or because UseCorrelation() is
registered twice - it reuses the id already stored on the request instead of throwing or generating
a second one. An inbound CorrelationId header is only trusted when it is non-blank and at most 128
characters; a blank, whitespace-only, or longer value is replaced with a generated id.
License
This project is licensed under the MIT License.
| 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
- Fluens.Web (>= 0.7.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Fluens.Web.Contexts:
| Package | Downloads |
|---|---|
|
Fluens.Web.Http
HttpClient registration helpers with catalog-backed service discovery, resilience, and logging for Fluens web applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.9 | 41 | 9/11/2026 |
| 0.7.8 | 49 | 9/10/2026 |
| 0.7.7 | 53 | 9/10/2026 |
| 0.7.6 | 167 | 7/1/2026 |
| 0.7.5 | 150 | 6/22/2026 |
| 0.7.4 | 162 | 6/18/2026 |
| 0.7.2 | 142 | 6/18/2026 |
| 0.7.1 | 162 | 6/18/2026 |
| 0.6.6 | 287 | 3/11/2026 |
| 0.6.5 | 127 | 3/4/2026 |
| 0.6.4 | 121 | 3/4/2026 |
| 0.6.3 | 126 | 3/3/2026 |
| 0.6.2 | 130 | 3/2/2026 |
| 0.6.1 | 127 | 3/2/2026 |
| 0.6.0 | 130 | 3/1/2026 |
| 0.5.7 | 125 | 3/1/2026 |
| 0.5.6 | 131 | 3/1/2026 |
| 0.5.5 | 135 | 2/28/2026 |
| 0.5.4 | 129 | 2/28/2026 |
| 0.5.3 | 130 | 2/27/2026 |