Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
服务器端,当用户离开 asp.net mvc 3 中的页面时,什么会失去作用域或有资格进行垃圾收集?
与 .Net 中任何其他已编译代码发生的情况完全相同,如果您处理对象,当 CLR 告知时间时,垃圾收集器将尽快收集它们,否则,资源会一直挂起,直到您的发生 IIS 和/或服务器中的 CLR 需要清除内存以分配其他资源。