Category: .NET Core
Updating Cosmos DB document schema
This post explains the pain-points of updating schema in NoSQL and how you can update Cosmos DB schema using custom JSON serializer.
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.
Loading certificate in Azure App Service for Linux
In this post, I have explained how you can load a certificate through code in Azure App Service for Linu
Distributed lock using PostgreSQL
This post talks about why you may need a distributed lock and how you can create a distributed lock using PostgreSQL.
A poor person’s scheduler using .NET Background service
This post explains how can create a simple scheduler using .NET BackgroundService without using external libraries or serverless functions.
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.
C# dynamic is evil, not your friend
This post gives you another reason why to stay away from C# dynamic. It turns the call-site into a late-bound leading to runtime issues.
Implementing inheritance with Enumeration class
The traditional Enum types do not support inheritance. The Enumeration class helps us to get away from the limitation.
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.