DOFObjectbeginAdvertise Method (DOFInterfaceID, DOFOperationControl, Int32)OpenDOF Object Access Library
Used by a Provider to advertise that the specified interface can be provided, specifying a Control and a timeout for this operation. While the operation timeout has not been reached the operation will be retried periodically as well as be sent over new connections as they come up. This call is beneficial at startup to notify potentially interested nodes of this provider's capability. The advertise solicits matching DOFInterestLevel.WATCH , DOFInterestLevel.ACTIVATE , and DOFInterestLevel.CONNECT interest.

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

C#
public DOFOperationAdvertise beginAdvertise(
	DOFInterfaceID interfaceID,
	DOFOperationControl control,
	int timeout
)

Parameters

interfaceID
Type: org.opendof.core.oalDOFInterfaceID
The interface identifier for the interface to be provided. This must not be null.
control
Type: org.opendof.core.oalDOFOperationControl
The control to use for the operation. Null == use default control.
timeout
Type: SystemInt32
The duration of the advertise in milliseconds.

Return Value

Type: DOFOperationAdvertise
The advertise operation. You may call DOFOperation.cancel() on this operation to cancel the advertise. Will not be null.
See Also

Reference