Does more than one instance of a controller get created per App-Domain? If so under what conditions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A new instance of a controller is created for each request by MVC, so you may end up with multiple instances running on different threads.
There is nothing stopping you from creating multiple instances yourself.
The controller should be stateless.