Closed Nikey646 closed 3 years ago
Rolling back to Version 2.8.0 2.9.0 of Stashbox.Extensions.Hosting results in the expected outcome (Application shuts down)
By incrementally upgrading from 2.9.0 and testing the minimal example, it appears that changes in the Stashbox project version 3.3.2, or the Custom Service Provider that was added in 2.9.4 is what is causing the issue.
Related commit: https://github.com/z4kn4fein/stashbox-extensions-dependencyinjection/commit/ac3482241408301b89171c5c729e9d6cb68ebfab
Thanks for reporting the issue, I'm going to check it soon!
Published a new version with the fix, could you please confirm that it works on your side as well? Thanks!
Published a new version with the fix, could you please confirm that it works on your side as well? Thanks!
Works great, thank you very much!
Reproduction Code:
Async / Sync methods of the
IHost
interface don't change the result. Manually building and running don't change the result. Commenting out line 4 in the example results in the application shutting down as expected.Setting the Environment to Development or Production doesn't change the result.
Example log from Stashbox blocking the IHost Shutdown:
When
.UseStashbox()
is commented out, the output is the same minus the last log message, and the application immediately exits after theApplication Shutdown Expected?
message appears.Nuget References is only Stashbox.Extensions.Hosting at version 2.9.4.