DynamicCaller class | QSYS API Reference Guide
Estimated reading time: 2 minutes
Support for CALLD as a dynamic call.
Namespace: ASNA.QSys.Runtime
Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Constructors
DynamicCaller(ICaller)
Dynamic caller constructor.
Parameters
Type |
Parameter name |
Description |
ICaller |
caller |
The caller object in the dynamic call. |
Properties
Type |
Name |
Description |
ICaller |
Caller |
The caller object in the dynamic call. |
Methods
Looks for a program in the assemblies of the Process AssemblyList
Type FindTypeInAssemblyList(string className, Assembly callerAssembly)
Parameters
Type |
Parameter name |
Description |
String |
className |
The class name of the program. |
Assembly |
callerAssembly |
The assembly of the caller. Use null to not search in the caller assembly. |
Returns
Type |
Description |
Type |
The type of the program. |
Defines the object that supports CallD.
DynamicMetaObject GetMetaObject(Expression parameter)
Parameters
Type |
Parameter name |
Description |
Expression |
parameter |
The expression representing the DynamicMetaObject during the dynamic bunding process. |
Returns
Type |
Description |
DynamicMetaObject |
The CallDMetaCaller object to use for the dynamic call. |
Determines if a program exists in the given assembly lists.
bool ProgramExists(string programName)
Parameters
Type |
Parameter name |
Description |
String |
programName |
Name of the program. Can be a simple name or fully qualified with its namespace. |
Returns
Type |
Description |
Boolean |
true if program found, otherwise false. |
Creates the list of assemblies representing dynamic references. CALLD targets will be searched for in this list.
void SetDynamicAssemblyList(string assemblies)
Parameters
Type |
Parameter name |
Description |
String |
assemblies |
Comma separated list of assemblies or patterns. |