Csag.Blueprint.Web
0.1.0
dotnet add package Csag.Blueprint.Web --version 0.1.0
NuGet\Install-Package Csag.Blueprint.Web -Version 0.1.0
<PackageReference Include="Csag.Blueprint.Web" Version="0.1.0" />
<PackageVersion Include="Csag.Blueprint.Web" Version="0.1.0" />
<PackageReference Include="Csag.Blueprint.Web" />
paket add Csag.Blueprint.Web --version 0.1.0
#r "nuget: Csag.Blueprint.Web, 0.1.0"
#:package Csag.Blueprint.Web@0.1.0
#addin nuget:?package=Csag.Blueprint.Web&version=0.1.0
#tool nuget:?package=Csag.Blueprint.Web&version=0.1.0
Csag.Blueprint.Web
Overview
This package provides the shared web-layer composition for CSAG Blueprint-based applications.
It owns reusable validated options, builder and middleware composition helpers, FastEndpoints/Swagger setup, OAuth integration, correlation and request-culture infrastructure, and readiness support that applications can plug into their host.
Core areas
Options and validation
The package ships reusable option types and validators for:
- database startup behavior
- API/security settings
- cache provider settings
- feature flags
- localization settings
Use:
services.AddBlueprintDefaultValidatedOptions(configuration);
This registers the blueprint-owned validated options rooted under the Blueprint configuration section.
Builder composition
AddBlueprintServices(this WebApplicationBuilder) wires shared web services such as:
- HTTPS redirection / HSTS / security headers setup
- CORS configuration
- Google OAuth authentication
- FastEndpoints registration
- Swagger/OpenAPI registration
- distributed cache registration
- anti-forgery services
Middleware composition
The package provides two main composition helpers:
app.UseBlueprintSecurityHeaders();
app.UseBlueprintMiddleware();
UseBlueprintMiddleware() applies the core blueprint request pipeline:
- correlation ID middleware
- CORS
- authentication
- tenant middleware
- request localization
- authorization
Applications may still append app-specific middleware before endpoint mapping.
Reusable middleware and services
| Component | Purpose |
|---|---|
CorrelationIdMiddleware |
Adds/propagates correlation IDs per request. |
TenantMiddleware |
Sets ambient tenant context from authenticated claims. |
HttpAuditMiddleware |
Emits audit events for HTTP requests. |
CorrelationIdDelegatingHandler |
Propagates correlation IDs to outbound HTTP requests. |
SessionClaimRequestCultureProvider |
Resolves request culture from claims and Accept-Language. |
CultureNormalizationHelper |
Matches and validates requested cultures/languages. |
ReadyHealthCheck |
Reusable readiness gate used with startup orchestration. |
FastEndpoints and Swagger
The package owns:
- FastEndpoints registration helpers
- conventional endpoint routing/naming helpers
- Swagger/OpenAPI registration helpers
Applications still own their endpoint classes, DTOs, validators, and policies.
Ownership Boundary
This package owns reusable web composition, not the application host itself.
The consuming application still owns:
Program.cs- endpoint implementations
- app-specific validators and option extensions
- host-specific runtime services
- concrete authentication/authorization decisions at the app level
For the broader package architecture, see docs/architecture/PACKAGES.md. For the current persistence and startup operating model, see docs/architecture/DATABASE.md.
| 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
- Audit.EntityFramework.Core (>= 32.2.0)
- Audit.NET (>= 32.2.0)
- Audit.NET.SqlServer (>= 32.2.0)
- ClosedXML (>= 0.105.0)
- Csag.Blueprint.Infrastructure (>= 0.1.0)
- FastEndpoints (>= 8.2.0)
- FastEndpoints.Swagger (>= 8.2.0)
- FluentValidation (>= 12.1.1)
- Microsoft.ApplicationInsights.AspNetCore (>= 2.23.0)
- Microsoft.ApplicationInsights.NLogTarget (>= 2.23.0)
- Microsoft.AspNetCore.Authentication.Google (>= 10.0.9)
- Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (>= 10.0.9)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 10.0.9)
- Microsoft.Data.SqlClient (>= 7.0.1)
- Microsoft.EntityFrameworkCore (>= 10.0.9)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.9)
- Microsoft.Extensions.Caching.SqlServer (>= 10.0.9)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 10.0.9)
- Neolution.Extensions.Caching.Distributed (>= 3.0.0-vnext0017)
- Neolution.Extensions.Configuration.GoogleSecrets (>= 1.6.0)
- NLog.Web.AspNetCore (>= 6.1.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Csag.Blueprint.Web:
| Package | Downloads |
|---|---|
|
Csag.Blueprint.Testing
Test infrastructure with Testcontainers, integration test base classes, and AutoFixture support for CSAG Blueprint applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 0 | 7/3/2026 |