My new book ASP.NET Core in Action, Second Edition is available now! It supports .NET 5.0, and is available as an eBook or paperback. You even get a free copy of the first edition of ASP.NET Core in Action!
This post shows how to apply the AutoValidateAntiforgeryTokenAttribute globally to automatically protect all dangerous action methods from CSRF attacks.…
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…
In this post I show a different approach to caching images. We write the file to disk in the wwwroot folder and serve the file with the StaticFileMiddleware…
The ASP.NET Core 2.0 preview 1 metapackage, Microsoft.AspNetCore.All, includes every package released as part of ASP.NET Core. This post looks at why.…
This post shows how to use multiple hosting environments for different apps on a machine, by using environment variables and the UseEnvironment() method.…
One of the new features added to ASP.NET Core in version 2.0 preview 1 is Razor Pages This post dips a toe into how and when you might want to use them.…
Stay up to the date with the latest posts!