DOFObjectbeginInvoke Method (DOFInterfaceMethod, Int32, DOFObjectInvokeOperationListener, DOFValue)OpenDOF Object Access Library
Used by a Requestor to invoke (or call) a method asynchronously or to invoke a method on multiple providers using an object with the DOFObjectID.BROADCAST ID.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFOperationInvoke beginInvoke(
	DOFInterfaceMethod method,
	int timeout,
	DOFObjectInvokeOperationListener operationListener,
	params DOFValue[] parameters
)

Parameters

method
Type: org.opendof.core.oalDOFInterfaceMethod
The method. Must not be null.
timeout
Type: SystemInt32
Maximum time to wait, in milliseconds, to obtain the result(s) of the operation. Must be >= 0. NOTE: If the number of responders is unknown, as is typically the case when making requests on an object with the DOFObjectID.BROADCAST ID, then the operation will always wait for the entire timeout period.
operationListener
Type: org.opendof.core.oalDOFObjectInvokeOperationListener
Listener to receive the result. May be null -- the initial result may be obtained by calling Invoke.waitResult(int) . Subsequent results are only reported to the operationListener.
parameters
Type: org.opendof.core.oalDOFValue
The method's parameters. The data types and order must match the method's defined parameter types. May be omitted for an empty parameter list.

Return Value

Type: DOFOperationInvoke
The invoke operation. Will not be null.
See Also

Reference

invoke(Method, System.Collections.Generic.IList<E>, int)