I would like to know if there are any means to detect the start and stop of event server services , is there any message communication filters to whcih I can subscribe to
In background plugin running in Service mode add:
// Apri il Canale di Comunicazione con ES
MessageCommunicationManager.Start(EnvironmentManager.Instance.MasterSite.ServerId);
// Acquisisci il Canale
_msgCommsChannel = MessageCommunicationManager.Get(EnvironmentManager.Instance.MasterSite.ServerId);
// Registra il gestore degli Eventi di Cambio dello Stato delle Connessioni con ES
_msgCommsChannel.ConnectionStateChangedEvent += ES_ConnectionStateChangedEvent;
then in ES_ConnectionStateChangedEvent check _msgCommsChannel.IsOnline
Freddy