Tag Archives: C#

AI – How to create an AI Agent in .NET

By | 06/05/2026

This post is the .NET adaptation of the AI – How to create an AI Agent in Python post I published previously: the same Weather Agent, the same logic, the same structure but rewritten from scratch in C#. What we will cover[Environment setup]: How to create a .NET console project and configure the API key… Read More »

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# – 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 »

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 MCP 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… 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 »