seesharper / LightInject.Microsoft.DependencyInjection

Implements Microsoft.Extensions.DependencyInjection.Abstraction
MIT License
46 stars 13 forks source link

Implement optional ISupportRequiredService on LightInjectServiceProvider #170

Closed anlampe closed 3 years ago

anlampe commented 3 years ago

I've added an implementation for the optional Microsoft.Extensions.DependencyInjection.ISupportRequiredService interface to the LightInjectServiceProvider. This replaces the generic exception thown by GetRequiredService<T>(IServiceProvider) with the original exception thrown by LightInject.

Documentation can be found here: https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.isupportrequiredservice

seesharper commented 3 years ago

@billwerk-andi Thanks. The PR failed because of an outdated dependency in the build configuration. If you rebase from master it should be fine 👍

seesharper commented 3 years ago

Thanks 👍