z4kn4fein / stashbox

A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
https://z4kn4fein.github.io/stashbox
MIT License
140 stars 10 forks source link

Enhancement: IServiceProviderIsService #115

Closed adambajguz closed 2 years ago

adambajguz commented 2 years ago

Hi @z4kn4fein, do you plan to add support for IServiceProviderIsService (which was added in .NET 6) in IDependencyResolver/StashboxContainer?

z4kn4fein commented 2 years ago

Hi @adambajguz,

IServiceProviderIsService is part of the Microsoft.Extensions.DependencyInjection.Abstractions 3rd party package and not the framework itself like IServiceProvider, so it was not added to the core Stashbox project. However, I added it to the Stashbox.Extensions.DependencyInjection package here. (This package is the foundation of each .NET core extension of Stashbox)

adambajguz commented 2 years ago

Oh, I didn't notice that StashboxServiceProvider implements it 🙈. Thanks!