- 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.

Using multiple instances of strongly-typed settings with named options in .NET Core 2.x
In this post I describe how you can register multiple instances of a strongly-typed settings object in the ASP.NET Core DI container using named options.…

Sharing appsettings.json configuration files between projects in ASP.NET Core
In this post I show how you can extract common settings to a shared JSON file and how to configure your projects to use them locally and after publishing…

Migrating passwords in ASP.NET Core Identity with a custom PasswordHasher
In this post I create a custom IPasswordHasher<> implementation that can be used in ASP.NET Core Identity to support other hashing formats, such as BCrypt.…

Creating and trusting a self-signed certificate on Linux for use in Kestrel and ASP.NET Core
In this post I show how to create a self-signed certificate on Linux. I show how you can trust the certificate, and how to configure Kestrel to use it.…

Using anonymous types and tuples to attach correlation IDs to scope state with Serilog and Seq in ASP.NET Core
In this post I describe two extension methods that make logging scopes as key-value pairs nicer in ASP.NET Core, by using anonymous types and tuples.…

Creating an extension method for attaching key-value pairs to scope state using ASP.NET Core
In this post I describe a small extension method that makes logging scopes as key-value pairs in ASP.NET Core with Serilog and Seq a little nicer.…

