-
Notifications
You must be signed in to change notification settings - Fork 10
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
3.1.0-preview-531: Exception when building expressions #76
Comments
Thanks for reporting this issue! |
The type requested is registered as plain class, no interfaces, and without lifetime. It is requested using
Please note that the |
Thanks for the context! I'm going to check what could be the issue here. |
I just figured out that it works with preview-519, but fails with preview-520. Maybe this helps, unfortunately, I cannot see which changes were made between these two preview releases. |
Yep, the changes between those are related to the scoped resolution, thanks for the info! |
This is the expression that fails to compile (from latest master):
Just another idea, it's using a block here, starts a check and resets a check. Isn't a try/finally block a good idea here, to make sure that everything stays intact when the constructor itself fails with an exception? |
Thanks! I found the root cause of this issue, I'll let you know when the fix is ready. |
Just for your information, it still does not work after commit c20c4c5
|
Thanks for the fast feedback! I'm aware of this, the previous commit was only the first part of the whole fix, unfortunately, it'll take a bit more time, some skeletons fell out during the refactor, so I have to do some more investigation about what parts are also affected. This is another pack of the fix, could you please run a new test with it? Thanks! And also for your patience! |
Thank you for the fix - it works now. |
I get the following exception when upgrading one of my projects to Stashbox preview version 3.1.0-preview-531. The same code worked fine using 2.8.9 before. Exception message and callstack are:
Auf die Variable "" vom Typ "Neusta.Shared.Services.UnitOfWork.IServiceContextWithUnitOfWork" wird vom Bereich "" verwiesen, sie ist jedoch nicht definiert.
The text was updated successfully, but these errors were encountered: