Skip to content
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

Different behaviour during debug with visual studio 2012 #30

Closed
lurongkai opened this issue Jul 13, 2013 · 0 comments
Closed

Different behaviour during debug with visual studio 2012 #30

lurongkai opened this issue Jul 13, 2013 · 0 comments

Comments

@lurongkai
Copy link

Hi, I encountered a strange problem when using ninject in mvc4 project.
Simply speaking, I want inject multiple IxxxRepository into controller, each IRepository constructed with IUnitOfWork implementation. IUnitOfWork implementation using InThreadScope object scope. But the problem is, everything runs as expected without vs debug, but when using VS debug and hit breakpoint in an Action, seems IxxxRepository's UnitOfWork are different.
Does VS debug will cause Ninject inject different instance into one controller although that object register with InThreadScope?
It strange because it just happened with VS debug mode....Can anybody helps?
Update: InRequestScope has same issue with VS 2012 debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant