DOFObjectProviderregister Method OpenDOF Object Access Library
Process a register request.

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

C#
void register(
	DOFOperationProvide operation,
	DOFRequestRegister request,
	DOFInterfaceEvent event_Renamed
)

Parameters

operation
Type: org.opendof.core.oalDOFOperationProvide
Information about the corresponding provide operation. This will never be null.
request
Type: org.opendof.core.oalDOFRequestRegister
Information about the register request. This will never be null. Use this to return, indicating that the 'register' is accepted (use
request.respond()
) or to throw exceptions (use
request.respond(...)
).

DOFErrorException should be thrown for any error condition that falls outside of the exceptions defined in the DOFInterface, or the register is not supported for the event.

event_Renamed
Type: org.opendof.core.oalDOFInterfaceEvent
The event that a handler is being registered on. This will never be null.
Remarks

Process a register request. This method is called when an event handler is registered. This is purely informational.

NOTE: You MUST call one of the Set.respond() 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

Listener