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

Generic Attributes in C#

C# 11 and .NET 7 introduce generic attributes. What is an attribute? In this blog post, we will explore the introduction of generic attributes in C# 11 and .NET 7. Before we delve into the specifics of generic attributes, let’s quickly overview the purpose and usage of attributes in defining metadata for types. Attribute Definition … Read more

Creating a .NET Client for Basic Authentication in Web APIs

Introduction In my previous blog post, I demonstrated how to implement basic authentication in a web API using ASP.NET. In this blog post, we will delve into creating a .NET client that utilizes basic authentication to authenticate against the server. While the previous blog post focused on testing the API with Postman, this time we’ll … Read more

Implementing Basic Authentication for Web APIs: A Simple Guide

Introduction When it comes to authenticating users in web APIs, basic authentication offers a straightforward mechanism. In basic authentication, the client, which is an application attempting to access an authenticated web API, must provide the username and password combination in the HTTP header of the HTTP request. On the server side, these credentials are used … Read more

Generic math support in C# 11

C# 11 was released on November 8th along with .NET 7, during the .NET conference, and generic math support is one of the important features that came out with it. Apart from this feature, it came with a lot of performance improvements and new features. In this blog post, I am going to focus mainly … Read more

NoSQL Database

In this blog post, I am going to cover the following four topics about NoSQL databases: What is NoSQL? NoSQL (also known as Non-SQL or not only SQL) is a database management system.​ And they do not save data in a relational data structure as other SQL-supported RDBMS do.​ In my opinion, NoSQL should have been named a NoRDBMS because … Read more