I need a way of knowing when events like user defined event and camera events are coming from the local site, or from a federated or interconnected site. I need to know this from inside a EnvironmentManager.Instance.EnvironmentType == EnvironmentType.Service using the MessageId.Server.NewEventsIndication
Unfortunately I don’t think there is a way to do this. The driver number on the ‘Hardware’ class in configuration API tell if it is an interconnect driver – but there is no understanding of hardware.
Just to clarify: It is the Environment in the Event Server that does not have any knowledge about the Hardware, so you will need to use Configuration API to find out which hardware contains the camera and then look up the driver ID to find out if it is an interconnected device or not.
Hi Peter, thanks that actually sounds easy enough! I have not tested federation yet, I assume that the ServerID will be different on Camera FQID’s from other servers right?
Hi again. I don’t have a federated setup right now, so I cannot try it out, but yes you are right - the Server ID should be different om cameras coming from other federated sites.