Category: ASP.NET Core
An opinionated way to consistent Error Handling in ASP.NET Core
In this post, I have explained an opinionated way to achieve consistent error handling for your ASP.NET Core through Error response object.
JSON:API for .NET developers – Part 1
This post is the first of my new series on JSON:API for .NET developers. JSON:API has been around for a while but has not been widely known in the .NET world.
Passing correlation id across requests
This post describes importance of passing a single correlation id across requests in microservices and how we an achieve this in .NET.
Generating client code with NSwag for Enumeration class
This post describes how we can render an Enumeration class as an Enum type in client code with NSwag by implementing Swagger ISchemaFilter.
Enumeration class as query string parameter
In this post, I have explained how you can use an Enumeration class as a query string parameter by creating a custom Model Binder.
Series: Enumeration Classes – DDD and beyond
We typically use Enumeration classes with Domain-Driven Design (DDD). In this series, I will describe how you can use an Enumeration Class beyond DDD.
From GitHub to NuGet
This post talks about my journey to publish ASP.NET Core Middleware as a Nuget Package from GitHub repository through GitHub Actions.
.NET Core and DI – Beware of Captive Dependency
The post explains captive dependency. It highlights the potential issues when you do not configure lifetime services correctly.
Client library for your Rest API – Is it worth the pain?
Creating a client library for your Rest service can help your clients consume your Rest API. But is it a silver bullet to every problem?
Our failed attempt at IAsyncEnumerable
C# 8 introduced a great feature of async stream using IAsyncEnumerable. This post talks about potential pitfalls when not using it right.