YairHalberstadt / stronginject

compile time dependency injection for .NET
MIT License
845 stars 24 forks source link

Separate Microsoft DI from Asp.Net Core #176

Closed KuraiAndras closed 2 years ago

KuraiAndras commented 2 years ago

The code which uses IServiceCollection should be separated from Asp.Net Core. When you use StrongInject in places which already uses IServiceProvider and the whole GenericHost you might not want to have a dependency on Asp.Net Core. I would like to try StrongInject with Unity, using my DI extension Injecter, and having a dependency on Asp.Net core is a no-go. It might also be undesirable for Maui, WinUI, WPF, Avalonia or any other type of poject.

KuraiAndras commented 2 years ago

fixed by #177

YairHalberstadt commented 2 years ago

available in release 1.4.2