Note: This API is now obsolete.
Used by a Requestor to begin a subscription, to be notified of changes to a property's value.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
[ObsoleteAttribute("Replaced by DOFSystem.createSubscription(DOFObjectID, Property, int, Listener)")] public DOFOperationSubscribe beginSubscribe( DOFInterfaceProperty property, int minPeriod, int timeout, DOFObjectSubscribeOperationListener operationListener, Object context )
Parameters
- property
- Type: org.opendof.core.oalDOFInterfaceProperty
The property. Must not be null. - minPeriod
- Type: SystemInt32
The minimum time, in milliseconds, that should elapse between property update notifications. Must be >= 0. - timeout
- Type: SystemInt32
Time, in milliseconds, that the subscription should remain active (the duration of the subscription). Use DOF.TIMEOUT_NEVER to subscribe indefinitely. Then use DOFOperation.cancel() to cancel the subscription. Must be >= 0. - operationListener
- Type: org.opendof.core.oalDOFObjectSubscribeOperationListener
Listener to receive property changed notifications. Should not be null (or change notifications cannot be received). - context
- Type: SystemObject
An optional, user-definable object that will be passed back in listeners as a member of DOFOperation. May be null.
Return Value
Type: DOFOperationSubscribeThe subscribe operation that may be used to cancel the subscription, extend it, etc. Will not be null.
Remarks
See Also