.NET Core Service Provider Gotchas and Less-Known Features

added by DotNetKicks
11/16/2018 4:27:02 PM

1 Kicks, 2553 Views

In this post I'm going to talk about a few gotchas with the .NET Core's built-in inversion of control (IoC) / service provider (SP)/dependency injection (DI) library. It is made available as the Microsoft.Extensions.DependencyInjection NuGet package. The single method exposed by the IServiceProvider interface, GetService, is not strongly typed.