Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
The ASP.NET Core Middleware Pipeline: Ordering, Use, Run, Map and Your Own Middleware
We follow a request through the middleware rings and the response back out: Use, Run and Map, writing middleware as a class, the effect of ordering, the recommended order of built-in middleware and typical pitfalls.
Program.cs and the Hosting Model in ASP.NET Core: WebApplication and Environments
The two phases of the minimal hosting model: preparing services, configuration and logging on the builder, then the pipeline and endpoints on the app. Environments, app.Run() and the Generic Host behind it all.
Your First ASP.NET Core Web API Project: .NET SDK, global.json and Project Structure
SDK versus runtime, multiple SDKs and global.json, how the dotnet new webapi template changed across versions, the csproj and TargetFramework, launchSettings.json and why the first request returns 307.
What Is an ASP.NET Core Web API? HTTP and REST Fundamentals
We meet the Web API through the HTTP window: request and response anatomy, methods and idempotency, status code families and resource-oriented URLs. We also lay out the series: a .NET 6 core, then version posts.