English 中文(简体)
我如何利用4号元数据中的“化学文摘社”来锁定我的“化学文摘社”延期?
原标题:How can I use CAS in .NET 4 to lock down my MEF extensions?

我在NET 4中申请使用紧急紧急紧急救助法。 我的主要应用有三组:Host,ApplicationContracts

<代码>Host是可操作的“boot-strapping”,可制造集装箱和构成。

<代码>Application载有我申请的逻辑,还有3个缔约方的延伸点。

<代码>Contracts 载有在推广点中使用的接口(和一些助手类别)。

因此,提出第三人申请的人必须提及<代码>Contracts,但不得提及Application

我认为,我的安全模式应当这样做:

  1. Host and Application should be SecurityCritical
  2. Contracts should be SecuritySafeCritical
  3. All 3rd party extensions should be SecurityTransparent

我认为1。 违约将得到满足。 我知道,我可以执行2个大会任务。 问题是,我如何执行规则3? 业务系统是否自动这样做,把所有被下载的延期列为未经信任的标志? 下载的延期大会能否得到充分信任?

最佳回答

如果你的申请得到完全信任,那么,如果你的申请被缺席,你的延期将充满信心,能够做他们想要的东西。 它赢得了他们的安全属性。 为了限制推广工作,你需要建立一个沙箱。 您将制定您的<代码>Host和Application,这在《申请书》和所有其他法典中都完全相信,只有得到您的许可。

http://msdn.microsoft.com/en-us/library/bb763046.aspx”rel=“nofollow noreferer” • 如何在Sand Box中实施部分托管的守则

问题回答

暂无回答




相关问题
Can t load multiple MEF parts

I have a Winforms desktop application that is loading multiple MEF parts with the same Interface type. Problem: When I try to load more than one of the same type I get the following exception: The ...

MEF + WCF Service Host?

I am just getting into MEF and I have come across a problem that I cannot resolve. I have a windows service that is reading in my DLLs (via MEF) and each DLL is a WCF Service Host. When I run my ...

MEF: Where should I put the CompositionContainer?

I have been using the Windsor IoC Container for my web-based application, to resolve the data access layer implementation the application should use. The web application s UI will consist of pages, ...

MEF如何确定其进口顺序?

MEF允许你通过使用进口管理特性进口多个部件。 如何确定它收回相关出口的顺序,并增加这些出口量,以达到你所知道的数量......

How-To Prevent Module Duplicates with MEF?

How can i prevent from MEF to load duplicates Modules in the case of the presence of 2 copies of the same Assembly (maybe by mistake) Assembly1.dll Assembly2.dll (copy of Assembly1) [ImportMany] ...

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

热门标签