Join GitHub today
Add IAsyncDisposable integration for ASP.NET Core 3 #778
The documentation describes how to implement async disposal with Simple Injector.
.NET Core 3 now contains an IAsyncDisposable interface. It would be nice if Simple Injector's ASP.NET Core packages could automatically asynchronously dispose its created scoped instances.
Downside, however, is that Simple Injector's integration packages require ASP.NET Core 2.0 or higher, while
About the options:
Thank you for this valuable tip. I ran some tests with this and it indeed does the trick. The package uses type forwarding, which allows the runtime to use the