A production-ready ASP.NET Core 10.0 Web API boilerplate with enterprise-grade middleware and Azure best practices.
- ✅ Global Exception Handling - Centralized error handling with consistent JSON responses
- ✅ Performance Monitoring - Request duration tracking with slow request detection
- ✅ Structured Logging - Correlation tracking with TraceId for distributed systems
- ✅ Azure Well-Architected Framework - Follows reliability, performance, and operational excellence principles
WebApi/
├── Middleware/
│ ├── GlobalExceptionMiddleware.cs
│ └── PerformanceMiddleware.cs
├── Extensions/
│ └── MiddlewareExtensions.cs
├── Program.cs
├── appsettings.json
└── appsettings.Development.json
cd WebApi
dotnet run{
"Performance": {
"SlowRequestThresholdMs": 500
}
}{
"statusCode": 500,
"message": "An error occurred",
"traceId": "00-abc123..."
}MIT