02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The <strong>Ocean</strong> Module<br />

Module Trust<br />

The ModuleManager class also manages module trusts. A module trust represents the<br />

trust level held by a group of assemblies. When assemblies are loaded into the <strong>Ocean</strong> Core<br />

through a system factory implementation, or through CoreSystem.AddModules<br />

method, they will be associated with a ModuleTrust object.<br />

A ModuleTrust can be strong by associating with a public key or weak by not<br />

associating with a key. A strong ModuleTrust will cause assembly loading to fail for<br />

assemblies that are not signed with the key specified by the ModuleTrust.<br />

You find all module trusts through the ModuleTrust property, or you can get a specific<br />

module trust using its name as a string and the GetModuleTrust method. Additionally<br />

you can find the module trust that contains a specific module and all the modules loaded<br />

to a specific module trust.<br />

3-38 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!