simpleinjector / SimpleInjector.Integration.AspNetCore

MIT License
2 stars 3 forks source link

Upgrade integration packages to SimpleInjector 5.2.0 #7

Closed dotnetjunkie closed 3 years ago

dotnetjunkie commented 3 years ago

Simple Injector 5.2 introduces a breaking change that impact the ASP.NET Core integration packages. A reference to the Microsoft.Bcl.AsyncInterfaces package is removed from the core library causing Container and Scope to stop implementing IAsyncDisposable. This impacts the integration packages as they currently make use of Container.DisposeAsync and Scope.DisposeAsync. On top of that, those packages (especially Integration.ServiceCollection and Integration.AspNetCore) wil have to implement different ways for doing asynchronous disposal.