aspnet-middleware
Installation
SKILL.md
ASP.NET Core Middleware - Quick Reference
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:aspnet-core, topic:middlewarefor comprehensive documentation.
Pipeline Order
Request → Exception Handler → HSTS → HTTPS Redirect → Static Files
→ CORS → Authentication → Authorization → Custom Middleware → Endpoint
var app = builder.Build();
// 1. Exception handling (first to catch all)
app.UseExceptionHandler("/error");
app.UseHsts();