how can I check if a listner registered on a specific MESSAGEID is still active?

Hi,

I developed a backgroud plugin that in Init () phase registers 7 listners on internal Milestone MessageIDs.

It happens all too often that after a few hours of activity, the previously registered listners no longer receive messages,

as if for some reason the message Communication lost them.

Is there any way to check if the listners are still registered?

Is there any event to be intercepted that occurs when the message Communication goes down / up?

registration listner:

public override void Init()

{

MessageCommunicationManager.Start(serverId);

_messageCommunication = MessageCommunicationManager.Get(serverId);

_changeAlarmData = _messageCommunication.RegisterCommunicationFilter(ChangedAlarmMessageHandler, new CommunicationIdFilter(MessageId.Server.ChangedAlarmIndication), null, EndPointType.Server);

_newAlarmData = _messageCommunication.RegisterCommunicationFilter(NewAlarmRecivedHandlerAsync, new CommunicationIdFilter(MessageId.Server.NewAlarmIndication), null, EndPointType.Server);

}

Please see the StatusViewer sample for an example of detecting a connection change situation. (_messageCommunication.ConnectionStateChangedEvent += ..)

https://doc.developer.milestonesys.com/html/index.html?base=samples/statusviewer_sample.html&tree=tree_search.html?search=statusviewer

If the event server or network is down this will signal. If the network and event server appear stable but you lose the getting new messages it might be a good idea to troubleshoot deeper, please let us know if this is the case.