A TELOS connector for the C# Language.
| Author: | Khaled Hammouda |
|---|---|
| Revision History: |
v1.1 (2007-04-10)
|
| Language: | C# |
| Technology: | .NET Framework |
| Reusability: | Executable |
| Download: | CSharpConnector-1.1.zip |
This is a TELOS connector for the C# Language, intended to be used by the TELOS system to call C# components. The following figure illustrates the CSharpConnector architecture.
C# Connector Architecture
TELOS (or any other name)
|
+--- Connectors
| |
| +--- (CSharpConnector files)
|
+--- Components
|
+--- CSharp
The C# Connector follows the design specifications outlined in the TELOS Technological Connectors Implementation document.
Starting with version 1.1 of the C# connector, a component manifest file is expected to be present in the component source directory. The manifest file name should be "component-manifest.xml", and has the following structure:
<component-manifest name="Metadata Extractor" id="MetadataExtractor" version="1.1" language="csharp"> <parameter name="mainAssembly">MetadataExtractor</parameter> <parameter name="mainClass">Pami.TextMining.MetadataExtractor</parameter> </component-manifest>
CSharpConnector.exe componentId instanceId portNumber
* A warning is displayed indicating that the component is not yet installed.
INSTALL ComponentSourceDir
The C# connector will create a directory with the name componentId under "..\Components\CSharp", and will copy all files from ComponentSourceDir to the created directory.
CSharpConnector.exe componentId instanceId portNumber
DELETE
The C# connector will delete the directory with the name componentId under "..\Components\CSharp".
CSharpConnector.exe componentId instanceId portNumber
CALL MethodName param1 param2 ...
* Refer to each component documentation for details on the methods provided and their parameters.
* The method parameters must follow DECADS type specifications. They are converted into native types for use by the component. The result of the method call is converted from its native type to the corresponding DECADS type.