- Loading...
-
Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!
-
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.
-
Creating custom password validators for ASP.NET Core Identity
In this post, I describe the password validation settings for ASP.NET Core Identity, how to customise them, and how to write a custom password validator.…
-
Localising the DisplayAttribute in ASP.NET Core 1.1
In this post, I recap localisation in ASP.NET Core, and see how localising the DisplayAttribute changed in ASP.NET Core 1.1. Spoiler alert - it just works!…
-
Controller activation and dependency injection in ASP.NET Core MVC
In this post, I'll describe how controllers are created in ASP.NET Core MVC using the IControllerActivator and the options available out of the box.…
-
Four ways to dispose IDisposables in ASP.NET Core
This post presents the options for disposing services in ASP.NET Core: manually; using the DI container; with RegisterForDispose; or IApplicationLifetime.…
-
Automatically validating anti-forgery tokens in ASP.NET Core with the AutoValidateAntiforgeryTokenAttribute
This post shows how to apply the AutoValidateAntiforgeryTokenAttribute globally to automatically protect all dangerous action methods from CSRF attacks.…
-
Defining custom logging messages with LoggerMessage.Define in ASP.NET Core
In this post I take a look at one of the helper methods in the ASP.NET Core logging library, and how you can use it to efficiently log messages in your app…