Using the Channel Class for Pub/Sub Design in C#: A Comprehensive Guide

The Channel class in C# is a robust tool for managing asynchronous communication between producers and consumers. Introduced with .NET Core 3.0 and now part of the core framework in .NET 7, the Channel class eliminates the need for additional NuGet packages. This blog post explores how to utilize Channel for efficient pub/sub design, covering … Read more

Getting Started with FakeItEasy for Mocking and Unit Testing in .NET

When working with unit tests in C# and .NET, creating mock objects and simulating behaviors of dependencies are crucial steps. Enter FakeItEasy, a simple yet powerful mocking framework that can save you time and reduce boilerplate code. In this blog, we’ll dive into FakeItEasy and demonstrate its usage in a practical scenario involving C# 11 … Read more

Composite Pattern

Greetings, fellow developers! Welcome back to Dot Net Core Central. Today, we delve into the fascinating realm of design patterns, focusing our attention on the Composite Design Pattern—a structural gem from the illustrious Gang of Four design patterns. Unveiling the Power of Composite Pattern The Composite Design Pattern, nestled within the category of structural design … Read more

Interpreter Pattern

Greetings, fellow developers! Join me at .Net Core Central for another insightful journey into the world of design patterns. In today’s blog post, we’ll unravel the intricacies of the Interpreter Design Pattern, a valuable addition to the renowned Gang of Four design patterns. Navigating the Landscape of Interpreter Design Pattern The Interpreter Design Pattern, nestled … Read more

Visitor Pattern

Greetings, fellow developers! Welcome back to .Net Core Central. Today’s exploration takes us into the intricate world of design patterns, with a spotlight on the Visitor Design Pattern – a gem within the Gang of Four design patterns. Unveiling the Visitor Pattern The Visitor Design Pattern, nestled within the realm of behavioral design patterns, is … Read more

Template Method Pattern

Greetings, fellow developers! Welcome back to .Net Core Central. In today’s blog post, we embark on a journey into the realm of design patterns, focusing our attention on the Template Method Design Pattern – a powerful member of the Gang of Four design patterns. Understanding the Essence of Template Method Pattern The Template Method Design … Read more

Strategy Pattern

Greetings, fellow developers! Welcome back to .Net Core Central. In today’s blog post, we delve into the fascinating world of design patterns, with a special focus on the Strategy Design Pattern – a versatile member of the Gang of Four design patterns. Understanding the Essence of Strategy Pattern The Strategy Design Pattern, classified under behavioral … Read more

Memento Pattern

Greetings, fellow developers! Welcome back to .Net Core Central. Today, we embark on a journey into the realm of design patterns, focusing our attention on the Memento Design Pattern – a gem among the Gang of Four design patterns. Understanding the Memento Design Pattern The Memento Design Pattern, a member of the behavioral design patterns … Read more

Mediator Pattern

Hello, coding enthusiasts! Welcome back to .Net Core Central. In today’s blog post, we’re delving into the intriguing realm of the Mediator design pattern. This behavioral design pattern serves as a powerful tool for managing interactions between a set of objects, promoting loose coupling and independent variation of their interactions. Understanding the Mediator Pattern The … Read more

Chain of Responsibility Pattern

Greetings, fellow developers! Welcome back to .Net Core Central. In today’s blog post, we’re diving into another fascinating design pattern – the Chain of Responsibility. This pattern, belonging to the Gang of Four design patterns, falls under the category of behavioral design patterns. Its primary aim is to decouple the sender of a request from … Read more