DOFServeraddStateListener Method OpenDOF Object Access Library
Add a StateListener . The stateListener will be notified immediately with the current state of the server and then on subsequent server state changes.

There is a possible race condition if you add the listener right after calling start(int) . That is, your listener may be called twice with the "started" state. It is preferable to add the listener before calling start(). Your listener will then be called twice: once with a "!started" state and then again with "started".

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

C#
public void addStateListener(
	DOFServerStateListener stateListener
)

Parameters

stateListener
Type: org.opendof.core.oalDOFServerStateListener
The listener that should be called with state changes. This must not be null.
See Also

Reference