- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Exploring Middleware as MVC Filters in ASP.NET Core 1.1
Adding a URL culture provider using middleware as filters - Part 1
This post takes a look at the code behind the 'Middleware as Filters' feature that is coming to ASP.NET Core, looking at how the feature is implemented.…

Adding a URL culture provider using middleware as filters
In this series I describe how to use middleware as an MVC filter to add request localisation to your app.…

Troubleshooting ASP.NET Core 1.1.0 install problems
In this post I show how I fixed some issues I encountered when installing the .NET Core 1.1.0 preview 1 SDK. The 1.1.0 RTM is out now, but it still applies!…

Making ConcurrentDictionary GetOrAdd thread safe using Lazy
This post explores the GetOrAdd function of ConcurrentDictionary, the level of thread safety it provides, and ways to add additional threading constraints.…

Adding Cache-Control headers to Static Files in ASP.NET Core
In this post I'll show how you can add caching headers to the files served by the StaticFileMiddleware to increase your site's performance.…

Accessing services when configuring MvcOptions in ASP.NET Core
This post is a follow on to one by Steve Gordon, in which I show a clean way to use configured services when setting up MvcOptions when calling AddMvc.…

