Handler for Server Connection Down events.
This event is sent if the socket to the AE Services server has gone
down for some reason.
The recovery action to take for this event is to call reconnect on
the application’s ServiceProvider instance. This method will
attempt to open a new socket to the AE Services server, and to
reestablish the existing session with a new socket.
If successful, the application should be able to resume operations
without reestablishing its state although your application may have
missed some events. To be sure that you know the current state of
the lamps, hookswitch, display and etc., you will have to query for those
states using getLampState, getHookswitch, getDisplay and etc. to update
the states.
The operation may fail if the network is down, or if the session
has been terminated on the AE Services server because the cleanup
timer expired. If the session has already been terminated by the
server, the getError() method associated with the received
StartApplicationSessionResponse will contain a
StartApplicationSessionNegResponse XML string with additional
information about the reconnect failure.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public event ServerConnectionDownEventHandler OnServerConnectionDownEvent
Public Event OnServerConnectionDownEvent As ServerConnectionDownEventHandler
public: virtual event ServerConnectionDownEventHandler^ OnServerConnectionDownEvent { void add (ServerConnectionDownEventHandler^ value); void remove (ServerConnectionDownEventHandler^ value); }
Assembly: ServiceProvider (Module: ServiceProvider)