Tag: C#
-
Using Azure Cosmos persistence with NServiceBus
This post explains how you can use NServiceBus and Azure Cosmos DB persistence together for scalability and reliability.
-
Gotchas with switch expression
This post talks about a bug in Rider and Roslyn analyzers when we refactor the switch-case to switch expression with Nullable default type.
-
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
-
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.
-
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.
-
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.