Category: Technology

CancellationToken Best Practices in ASP.NET Core

One of the strengths of ASP.NET Core is how naturally it supports cooperative cancellation. When a client disconnects, refreshes the page, closes the browser tab, or a request timeout is triggered, ASP.NET Core exposes that signal through HttpContext.RequestAborted. You...

About Extension Methods in C#

Introduction Extension methods in C# are a powerful feature that allows developers to “add” methods to existing types without modifying the original class or creating a derived type. They enable cleaner, more readable code and are widely used in...