Category: .NET Core
-
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.
-
Enumeration class and JSON Serialization
In this post, I will explain how we can serialize an Enumeration class using a custom JSON Converter for both System.Text.Json and Newtonsoft.Json.
-
Introduction to Enumeration Classes
This is the first post in the series: Enumeration classes – DDD and beyond. This post gives an introduction to an Enumeration class.
-
Integrity of Collections in Domain-Driven Design
The post describes the issues with Collection integrity in DDD and how we can use ImmutableList to avoid manipulating collections outside the Domain.
-
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.
-
NuGet packages – Our Standards and Defaults
This posts talks about some of the standards and practices we use for our internal NuGet packages in our organization.
-
.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.