Reading XML and Loading the scripts
The steps for reading XML and client script loading in Content Manager are described.
Note the first step in client scripting within Content Manager:
- The properties form is loaded from the <client tool>host.exe and the XML form is read from the MetadataConfig.xml file located in the %LOCALAPPDATA%\SDL\InfoShare Client\<HASHKEY>\Config\ClientConfig folder.
- For each
scriptelement, Just-In-Time (JIT) compilation creates a temporary DLL (%TEMP%/SDL/TRI-GUID-.....DLL) in a separate Client Scripting (CS) Application Domain (AppDomain) inside the default AppDomain. The security settings of the default AppDomain applies also to the CS AppDomain. - In case of compilation errors a script failure message box is raised and the loading of the client script is ended while reading the XML itself is continued.
- At successful compilation the script gets loaded and all events are bind to the functions in the assembly.
The following diagram illustrates the loading form process.