Tag Archives: C#

AI – Create a server MCP with .NET

By | 04/02/2026

In this post, we will see what a server MCP is, when and why we should use it and how to create a server with .NET.But first of all, what is MCP?“The Model Context Protocol is an open protocol developed by Anthropic that standardizes how applications provide context to Large Language Models (LLMs). Think of… Read More »

Minimal APIs – Validation in .NET 10

By | 07/01/2026

In this post, we’ll explore the new validation feature introduced in .NET 10 a native, first‑class validation filter built directly into Minimal APIs.Before .NET 10, Minimal APIs encouraged a style where validation logic often lived inline inside handlers. While that approach works for small demos, it breaks down quickly in real applications. As endpoints grow,… Read More »

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# – Refit client

By | 26/11/2025

In this post, we will see what Refit is and how we can use it in our .net projects.But first of all, what is Refit?“Refit is a REST library for .NET that turns our REST API into a live interface. Created by Paul Betts, Refit uses C# interfaces decorated with attributes to define HTTP API… Read More »

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 »

Azure – Durable Functions

By | 15/10/2025

In this post, we will see what a durable functions is and how we can implement it.First of all, what is a Durable Functions?An Azure Durable Functions is essentially an extension of Azure Functions that allows us to write stateful workflows in a serverless environment. Instead of manually managing state or relying on external storage,… Read More »

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 »

Category: C# Tags:

C# – Management of a SQLite database

By | 06/11/2024

In this post, we will see how to create and manage a SQLite database using C#. We will create a minimal API to use the database, implement a repository pattern to abstract database operations and finally, we will write unit tests to verify our code.The SQLite database we will use is named TestDb and it… Read More »

Category: C# Tags: