DOFRegistration ClassOpenDOF Object Access Library
This class maintains an event registration.
Inheritance Hierarchy

SystemObject
  org.opendof.core.oalDOFRegistration

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

C#
public sealed class DOFRegistration

The DOFRegistration type exposes the following members.

Methods

  NameDescription
Public methodaddListener
Add a listener that will receive an update every time the registered event is signaled.
Public methoddestroy
Destroy the DOFRegistration.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodgetContext
Public methodgetEvent
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodgetObjectID
Public methodgetQuery
Public methodgetState
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodremoveListener
Remove a previously added listener.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This class maintains an event registration. You can start just one registration with a single instance.

There are 3 ways to use this class:

  • Unicast - Use a specific DOFObjectID to register for just one provider. The register operation is not flooded. Interest is required because this case uses an internal query to find the provider.
  • Multicast - Use DOFObjectID.BROADCAST to register for all providers of the specified DOFInterface . The register operation is flooded. Interest is not required because no internal query is used.
  • Query - Use a DOFQuery to specify what to register for. Only one event registration is maintained at a time.
See Also

Reference