Debugging Dependency Injection Service Registrations in .NET 5.0

Investigating a technique on how to debug service registrations when functionality isn’t working as expected.

January 12, 2021 · 2 min

Top Level Statements and Dependency Injection in .NET 5.0

Exploring Top Level statements in .NET 5 and manually setting up and using dependency injection with the Microsoft container.

January 5, 2021 · 4 min

Optional Dependencies with Autofac

Ever wanted to define a dependency as optional and only be loaded depending on consumption of your service?

June 30, 2020 · 6 min

Inject JsonSerializerOptions so Don't Repeat Yourself

How many times do you create a private options variable when using json serializer and end up with duplicate code? Let’s take a look at one option to help resolve this.

March 31, 2020 · 2 min

Multiple Ways to Register Your Dependencies with ASP.NET Core 3

Exploring the multiple ways you can register your service dependencies with the new IHost found in ASP.NET Core 3 (Preview).

June 17, 2019 · 4 min