How to access multiple sites at the same time using EnvironmentManager for sending analytics events using EnvironmentManager.Instance.SendMessage?

Dear all,

I am building LPRS based analytics software which would be able to add multiple Milestone site cameras and perform LPRS. So, far I have been able to do that successfully. But when I am trying to send the analytics events to the respective sites, I just figured out that EnvironmentManager.Instance is connected to just a single site and hence all the events that I sent are going to the same site. I am aware of how to find the serverID asociated with the LPRS cameras used by my analytics application. So how do I manage sending analytics events to multiple site as LPRS is done?

Please guide.

Regards,

Saurabh Gandhi

Try to explore the MultiSiteStatusViewer sample, it uses MessageCommunication objects with multiple sites.