Skip to content

receperdog/dotnet-azure-ready-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure-Ready .NET Boilerplate

A production-ready ASP.NET Core 10.0 Web API boilerplate with enterprise-grade middleware and Azure best practices.

Features

  • 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

Project Structure

WebApi/
├── Middleware/
│   ├── GlobalExceptionMiddleware.cs
│   └── PerformanceMiddleware.cs
├── Extensions/
│   └── MiddlewareExtensions.cs
├── Program.cs
├── appsettings.json
└── appsettings.Development.json

Getting Started

cd WebApi
dotnet run

Configuration

{
  "Performance": {
    "SlowRequestThresholdMs": 500
  }
}

Error Response Format

{
  "statusCode": 500,
  "message": "An error occurred",
  "traceId": "00-abc123..."
}

License

MIT

About

Azure Ready Asp Net Core Web Api Boiler Plate

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages