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

Configuring named options using IConfigureNamedOptions and ConfigureAll
In this post I look at how to configure named options that require injected services and how to configure all named options at once using ConfigureAll()…

The dangers and gotchas of using scoped services in IConfigureOptions
In this post I look at the problems you can hit with strongly-typed settings when you inject Scoped services into IConfigureOptions, and how to avoid them…

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

Building an open source GitHub project using Azure DevOps
In this post I show how I added CI builds with Azure DevOps to an open source .NET library hosted on GitHub…

Creating an ASCII-art tree in C#
In this post I describe how to draw a tree-like directory structure using ASCII art in C#…

Adding decorated classes to the ASP.NET Core DI container using Scrutor
In this post I show how to do service decoration with Scrutor, where services "wrap" another implementation of the service…

