- 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.
-
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.…
-
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…
-
Using Scrutor to automatically register your services with the ASP.NET Core DI container
In this post I describe how to use the open source library Scrutor to add assembly scanning capabilities to the ASP.NET Core DI container.…
-
How to register a service with multiple interfaces in ASP.NET Core DI
In this post I describe how to register a class that implements multiple interfaces with the ASP.NET Core DI container, and how to avoid a common bug…
-
The difference between GetService() and GetRequiredService() in ASP.NET Core
This post looks at the GetService() and GetRequiredService() methods of the ASP.NET Core DI container, the difference between them and which you should use…
-
Converting web.config files to appsettings.json with a .NET Core global tool
In this post I describe how I created a .NET Core global tool to easily convert configuration stored in web.config files to JSON files for ASP.NET Core.…