Reputation: 82297
Server side, what loses scope and or is eligible for garbage collection when a user navigates away from a page in asp.net mvc 3?
Upvotes: 0
Views: 79
Reputation: 2674
Exactly the same with what happens on any other compiled code in .Net, if you dispose your objects they will be collected as soon as possible by the Garbage Collector when time tells by the CLR, otherwise, resources are hanging until a good recycle in your IIS happens and/or the CLR in your server needs to clear memory to allocate other resources.
Upvotes: 1