什么是装配实习? [英] What is assembly interning?

查看:21
本文介绍了什么是装配实习?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是装配实习?它用于什么目的?听说是 ASP.Net 4.5 添加的新功能.谁能解释一下这个功能.和 String 实习一样吗?

What is assembly interning? For what purpose it is used for? I heard that it is a new feature added by ASP.Net 4.5. Can anyone please explain this feature. Is it same as String interning?

推荐答案

来自开发 Windows Azure 和 Web 服务一书:

From book Developing Windows Azure and Web Services:

ASP.NET 有一项称为卷影复制的功能,它启用在要在不卸载 AppDomain 的情况下更新的应用程序域.通常,这是必需,因为公共语言运行时 (CLR) 将锁定程序集,因此您不能只需在其上复制一个新程序集即可.影子复制意味着复制原始程序集到一个临时位置.复制的程序集被锁定,原始程序集可以更新了一个新版本.

ASP.NET has a feature called shadow copying that enables assemblies that are used in an application domain to be updated without unloading the AppDomain. Normally, this is required because the Common Language Runtime (CLR) will lock the assemblies so you can’t just copy a new assembly over it. Shadow copying means that the original assembly is copied to a temporary location. The copied assembly is locked, and the original assembly can be updated with a new version.

ASP.NET 4.5 添加了一项称为程序集实习的新功能.因为所有的 DLL 都已经位于一个位置(Temporary ASP.NET Files 文件夹),实习分析此文件夹对于重复的程序集.然后将这些程序集移动到一个特殊的位置,所有的原始引用被替换为所谓的符号链接.

ASP.NET 4.5 adds a new feature called assembly interning. Because all DLLs are already located in one location (the Temporary ASP.NET Files folder), interning analyzes this folder for duplicate assemblies. Those assemblies are then moved to a special location, and all the original references are replaced with what’s called a symbolic link.

这篇关于什么是装配实习?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆