DOFObjectbeginAdvertise Method (DOFInterfaceID, Int32)OpenDOF Object Access Library
Used by a Provider to advertise that the specified interface can be provided, specifying a timeout for this operation.

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

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

Parameters

interfaceID
Type: org.opendof.core.oalDOFInterfaceID
The interface identifier for the interface to be provided. This must not be null.
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.
Remarks

Used by a Provider to advertise that the specified interface can be provided, specifying 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.
See Also

Reference