Category Archives: C#

C# – MassTransit

By | 18/03/2026

In this post, we will see what MassTransit is and when and how we can use it in our projects. When building modern distributed systems, one of the most critical challenges we face is reliable communication between services. While we could implement ‘message based’ communication manually, managing message serialization, retry logic, error handling, and distributed… Read More: C# – MassTransit »

C# – Webhooks

By | 18/02/2026

In this post, we will see what Webhooks are and how we can use them in our .NET projects.Based on the post I created for SignalR, it is important to distinguish between different types of real-time communication. While SignalR handles complex, persistent connections, Webhooks solve a different problem entirely.A Webhook is not a library or… Read More: C# – Webhooks »

C# – SignalR

By | 10/12/2025

In this post, we will see what SignalR is and how we can use it in our .net projects.SignalR is a library for .NET developers that simplifies adding real-time web functionality to our applications.In short, it enables server-push. Instead of the client always having to initiate a request, SignalR opens a persistent, two-way connection. This… Read More: C# – SignalR »

C# – Transient vs. Scoped vs. Singleton

By | 12/11/2025

In this post, we’ll see the three main service lifetimes in .NET: Transient, Scoped, and Singleton. We’ll also touch on the concept of Dependency Injection (DI) and provide C# code examples to illustrate how each lifetime works. WHAT IS DEPENDENCY INJECTION?Dependency Injection is a design pattern that allows us to remove hard-coded dependencies and make… Read More: C# – Transient vs. Scoped vs. Singleton »

C# – Reflection

By | 20/11/2024

In this post, we will see what Reflection is and how use it in our programs.But first of all, what is Reflection?“Reflection is part of the System.Reflection namespace in C# that enables us to analyse assemblies and types, create instances dynamically, access properties and fields, invoke methods, and even discover custom attributes. Through reflection, we… Read More: C# – Reflection »

Category: C# Tags:

C# – Management of a PostgreSQL database

By | 11/09/2024

In this post, we will see how to manage the PostgreSQL database created in the post “Python – Management of a PostgreSQL database”, using C#.We will define a Minimal API for managing the database using C# and Dapper, combined with the Repository Pattern. Finally, we will add the Unit Test to check that all methods… Read More: C# – Management of a PostgreSQL database »

C# – Concurrent collections

By | 06/03/2024

In this post, we will see some concurrent collections that we could use in our multi-threaded application where, managing shared data between threads, can introduce complexity and potential error such as race conditions or deadlocks. .NET addresses these cases with its concurrent collections, found in the System.Collections.Concurrent namespace. These collections are designed to be thread-safe… Read More: C# – Concurrent collections »