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

Major performance issue of IEnumerable in C#/.NET

IEnumerable can be a performance bottleneck to your application if not used properly. In this blog post, first, I’m going to show how implementing IEnumerable the incorrect way can cause a performance bottleneck.  And after that, I’m going to show, how the performance issue can be fixed easily by using IEnumerable the proper way. The … Read more

Observer Pattern

The observer pattern is a design pattern from the Gang Of Four design patterns. And the observer pattern is a behavioral design pattern. The main intent of this pattern is to define a one-to-many dependency between objects so that when one object changes its state all the objects dependent on it are notified automatically. In … Read more

Iterator Pattern

The iterator design pattern is a behavioral design pattern. It is part of the Gang Of Four design patterns. The main intent of this design pattern is to provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. In simple language, what the above statement means is that … Read more

Command Pattern

The command pattern is also one of the design patterns from the Gang Of Four design patterns. The command pattern is a behavioral design pattern. And the primary intent of this pattern is to encapsulate a request as an object, thereby letting us parameterize clients with different requests queue or log requests and support undoable … Read more

State Pattern

The state design pattern is one of the patterns from the Gang of Four design patterns. It is a behavioral design pattern. The primary intent of the state pattern is to allow an object to alter its behavior when its internal state is changed. In your day-to-day implementation, you may be encountering the state pattern … Read more

Proxy Pattern

Hello everyone, and welcome to .NET Core Central. In this blog post, I will walk through the proxy design pattern. The proxy design pattern is one of the design patterns from the Gang of Four design patterns. And the proxy design pattern is probably one of the simplest and easiest to understand and implement design patterns … Read more