DOFObjectProviderinvoke Method OpenDOF Object Access Library
Process an invoke request.

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

C#
void invoke(
	DOFOperationProvide operation,
	DOFRequestInvoke request,
	DOFInterfaceMethod method,
	IList<DOFValue> parameters
)

Parameters

operation
Type: org.opendof.core.oalDOFOperationProvide
Information about the corresponding provide operation. This will never be null.
request
Type: org.opendof.core.oalDOFRequestInvoke
Information about the request. This will never be null. Call one of the Get.respond(DOFValue) methods to return results or to throw exceptions.

DOFProviderException should be thrown for any error condition that is defined as an exception in the DOFInterface.

DOFErrorException should be thrown for any error condition that falls outside of the exceptions defined in the DOFInterface.

method
Type: org.opendof.core.oalDOFInterfaceMethod
The method being invoked. This will never be null.
parameters
Type: System.Collections.GenericIListDOFValue
The method's parameter list. This will never be null.
Remarks

Process an invoke request. This method is called when an 'Invoke' Method is requested.

NOTE: You MUST call one of the Invoke.respond(DOFValue[]) methods when you have finished processing the request. The request is kept in a "pending" status until one of these calls is made. This means that you may spawn a thread which could finish processing this request after returning from this method.

See Also

Reference

Invoke.respond(DOFValue[])
Invoke.respond(System.Collections.Generic.IList<E>)
Invoke.respond(DOFProviderException)
Invoke.respond(DOFErrorException)