DOFObjectProviderget Method OpenDOF Object Access Library
Process a get request.

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

C#
void get(
	DOFOperationProvide operation,
	DOFRequestGet request,
	DOFInterfaceProperty property
)

Parameters

operation
Type: org.opendof.core.oalDOFOperationProvide
Information about the corresponding provide operation. This will never be null.
request
Type: org.opendof.core.oalDOFRequestGet
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.

property
Type: org.opendof.core.oalDOFInterfaceProperty
The property on which the 'Get' was requested. This will never be null.
Remarks

Process a get request. This method is called when a 'Get' Property value is requested by a Get or a Subscribe . If called from Subscribe,
request
will be a SubscribeGet , and any DOFProviderException thrown will be converted to a DOFErrorException ( DOFErrorException.APPLICATION_ERROR ).

NOTE: You MUST call one of the Get.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

Get.respond(DOFValue)
Get.respond(DOFProviderException)
Get.respond(DOFErrorException)