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

Name Description
DynamicCaller(ICaller) Dynamic caller constructor.

DynamicCaller(ICaller)

Dynamic caller constructor.

DynamicCaller(ICaller)

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

Signature Description
FindTypeInAssemblyList(String, Assembly) Looks for a program in the assemblies of the Process AssemblyList
GetMetaObject(Expression) Defines the object that supports CallD.
ProgramExists(String) Determines if a program exists in the given assembly lists.
SetDynamicAssemblyList(String) Creates the list of assemblies representing dynamic references. CALLD targets will be searched for in this list.

Type FindTypeInAssemblyList(string className, Assembly callerAssembly)

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.

DynamicMetaObject GetMetaObject(Expression parameter)

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.

bool ProgramExists(string programName)

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.

void SetDynamicAssemblyList(string assemblies)

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.