Global Endpoint Filters with ASP.NET Core Minimal APIs
Explains how to implement global endpoint filters for ASP.NET Core Minimal APIs, offering a cleaner alternative to middleware.
Khalid Abuhakmeh is an experienced .NET developer sharing practical insights on ASP.NET, C#, and modern web development.
100 articles from this blog
Explains how to implement global endpoint filters for ASP.NET Core Minimal APIs, offering a cleaner alternative to middleware.
Introducing RazorSlices, a project that brings Razor view functionality to ASP.NET Core Minimal APIs, allowing developers to render Razor views in a lightweight way.
A guide to using embedded resources in .NET applications, covering how to include and access files like images and localization data within assemblies.
A guide to creating a .NET extension method that formats collections into human-readable strings using the Oxford comma and C# pattern matching.
A guide to configuring JetBrains Rider and ReSharper to properly recognize and support the Feature Folders pattern in ASP.NET Core MVC projects.
A guide to creating and testing custom JsonConverter classes in C# using System.Text.Json, including helpful extension methods for unit tests.
A humorous C# tutorial solving Fizz Buzz with exceptions, Polly retry policies, and C# 12 features, demonstrating intentionally 'dumb' code.
A guide to implementing multi-tenancy in ASP.NET Core using the FinBuckle.Multitenant library, covering tenants, strategies, and stores.
Explains how to accurately measure Unicode string lengths in C# using the StringInfo class, addressing challenges with non-ASCII characters in console output.
Introducing MiniWord, an open-source .NET library for generating Word documents from templates using OpenXML and C#.
Introducing Sisk, a lightweight, open-source, and cross-platform alternative HTTP server for .NET, independent of ASP.NET Core.
Explores .NET 8's new Interceptors feature, a preview capability for intercepting and replacing specific method calls at compile time.
A tutorial on generating sitemaps for ASP.NET Core applications using an open-source library, covering MVC, Minimal APIs, Razor Pages, and Entity Framework Core.
Explores .NET 8's new TimeProvider and FakeTimeProvider for testing time-dependent code, enabling controlled manipulation of time in unit tests.
Explains a common pitfall when using the C# 'with' keyword on records containing reference types, and how to avoid it.
A tutorial on integrating Bootstrap modals with HTMX and ASP.NET Core for dynamic, server-rendered modal dialogs.
Learn how to add a Readme.md file to your NuGet packages to improve documentation and user onboarding on NuGet.org.
Explains how to handle ASP.NET Core anti-forgery tokens when using HTMX boosts, including solutions for script re-registration.
A technical article explaining how to use StringBuilder in C# to efficiently replace values in a string, reducing memory overhead compared to string.Replace.
A .NET developer discusses the philosophy of choosing personal and team development tools while maintaining team harmony and productivity.