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

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

问题描述

什么是装配实习?它用于什么目的?
我听说这是ASP.Net 4.5新增的功能。
谁能解释这个功能。

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已经已经
位于一个位置(临时ASP.NET文件文件夹),所以实习生会分析此文件夹
中是否存在重复的程序集。然后将这些程序集移动到一个特殊位置,并将所有
原始引用替换为所谓的符号链接。

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天全站免登陆