-
-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lifetime scope in an unobserved task #971
Comments
I'm not able to reproduce this in a unit test. On first glance it appears there's some sort of condition where I did notice that unobserved task exceptions don't bubble up to the caller, so either you're seeing it in a debugger or this is partial code that doesn't show how you're figuring out there's an exception going on. Without some sort of a way to repro it, I can't debug it. In 4.9.0 we added code that will actively throw an ObjectDisposedException if an activator is called from a lifetime that's been disposed - #945, #960. It may be that there is something going on where you were inadvertently making use of a bug that we've fixed. I'm guessing; I don't actually know. We do use SourceLink for debugging now to make it easier to step into the Autofac core code. If you can't create a repro for us, that may be a way to figure out on your end what's going on and give us some pointers. |
Since we haven't heard back on this, I'm going to close it. If there's a way we can reproduce it in a unit test scenario, let us know by opening a new issue, otherwise we're sort of stuck. Thanks! |
since updating from 4.8.1, the following scenario is now throwing an ObjectDisposedException when calling Resolve() inside of DoWork() even though I do not call Dispose() until after DoWork() is complete
The text was updated successfully, but these errors were encountered: