Click or drag to resize

RpObjectExecDuplexCallback Method

This callback executes an asynchronous call to the funName function on the Server object associated with the representation object. The result of the function is sent back to the caller through a call to the duplex global function duplexFunName.

Namespace:  RW.Server.Component
Assembly:  RW.Server.Component (in RW.Server.Component.dll) Version: 7.2.0.0 (7.2.0.0)
Syntax
public virtual bool ExecDuplexCallback(
	string funName,
	MvValue[] argv,
	string duplexFunName,
	MvValue[] duplexArgv,
	int resultIndex = 0,
	bool inTrans = true
)

Parameters

funName
Type: SystemString
The function name to invoke
argv
Type: RW.Server.ComponentMvValue
The arguments passed to the function funName
duplexFunName
Type: SystemString
The duplex global function name
duplexArgv
Type: RW.Server.ComponentMvValue
The duplex global function arguments
resultIndex (Optional)
Type: SystemInt32
The result of the funName function will be put at the resultIndex position in the array of arguments to the duplex function
inTrans (Optional)
Type: SystemBoolean
this parameter indicates if the callback must be executed using the transaction mechanism or not (see Transaction control in MvComponent). If equal to true and if no current transaction has been initialized, a new one is implicitly created and commited.

Return Value

Type: Boolean
false if the request callback couldn't be sent, true otherwise
See Also