ASP.NET Core Internals
How HTTP requests flow through the ASP.NET Core pipeline β from middleware to endpoints, with authentication, DI, and error handling along the way.
Request Pipeline
Services
Dependency Injection
Constructor injection, service scopes per request, Singleton vs Scoped vs Transient.
Configuration & Options
appsettings.json, IOptions pattern, secrets management, and environment overrides.
Logging & Diagnostics
ILogger pipeline, structured logging, OpenTelemetry, and distributed tracing.
Request Processing
Model Binding & Validation
How request data maps to C# objects and validates them.
Filters
Pipeline interception β authorization, resource, action, exception, and result filters.
API Versioning
URL, query string, and header-based versioning strategies.
Error Handling
RFC 7807 structured errors, global exception handling, and Problem Details.