Mastering Request Timeout Middleware in ASP.NET Core

In the fast-paced world of API development, managing request timeouts effectively is crucial for maintaining a smooth user experience and ensuring robust application performance. Fortunately, ASP.NET Core 8.0 introduced a powerful, out-of-the-box solution: Request Timeout Middleware. In this blog, we’ll explore what makes this middleware indispensable, how to integrate it into your applications, and the … Read more

Introduction to FusionCache: Simplifying Caching in .NET

Hello everyone, and welcome to .NET Core Central! Today, I’m excited to introduce you to FusionCache, a powerful NuGet package that offers a facade on top of other distributed caches, along with several advanced features that can significantly simplify your caching strategy. In this post, we’ll cover the basics of using this Nuget package, and … Read more

Simplify CSV Handling in C# with CSVHelper

Dealing with CSV files can sometimes be tricky, especially when the data includes commas within the values. In this blog post, we’ll explore how to handle CSV files in C# using the CSVHelper NuGet package, which simplifies the process and handles complex scenarios gracefully. Reading a CSV File in C# Manually Initially, I attempted to … Read more

Mastering Delegates in C# 12: Action, Func, and Default Parameters

With the release of C# 12, developers have even more powerful tools at their disposal to streamline their code the delegate default parameters. One of the significant enhancements is the support for default parameters in delegates. In this blog post, we’ll explore the built-in delegates Action and Func, how to use them, and the new … Read more

Exploring Primary Constructors in C# 12 and .NET 8

With the release of .NET 8 and C# 12, developers have been introduced to several new features that enhance the development experience. One of the most exciting additions is the primary constructor for classes. This blog post will provide an in-depth look at primary constructors, their benefits, and how to use them effectively in your … Read more

Simplifying Authentication and Authorization in Microservices: A Practical Approach

In one of my YouTube videos, I explored authentication and authorization in microservice, presenting three approaches and highlighting the one I personally prefer. If you’d like to revisit that discussion, you’ll find the video link for this topic which I covered on YouTube here. Let’s dive into my preferred approach and expand on a common … Read more

Understanding Webhooks and Their Implementation in .NET/C#

In the world of modern software, communication between systems is essential for seamless operation. One of the most efficient ways to handle this communication is through webhooks. Webhooks are widely used in event-driven workflows and provide real-time notifications between different systems. In this blog post, we will dive deep into what webhooks are, how they … Read more

Exploring the Parallel Class in System.Threading.Tasks for Efficient Multithreading

The Parallel class in the System.Threading.Tasks namespace provides powerful methods to run loops and actions concurrently. This guide explores its primary methods—For, ForEach, ForEachAsync, and Invoke—along with examples of their usage and key benefits. Why Use the Parallel Class? Multithreading enables applications to perform multiple operations simultaneously, maximizing CPU utilization and improving performance. The Parallel … Read more