Interrogate Connection Status of HealthConnect/Interoperability Service
EnsLib.HL7.Adapter.TCPInboundAdapter has a Connected property that I assume is set to the state of the connection session with the remote host; i.e. 1 when Connected, 0 when not. I'm assuming this is the property the Production Configuration web page uses to display the state of the service (green for Connected, red for not Connected, etc.).
How can I interrogate the value of that property of an active service, via a method running in separate process?
(It really seems like I should know this, but I'm just not finding the right magical incantation)
Comments
I think the Ens.Util.Statistics EnumerateHostStatus query may be what you're looking for:
For a TCP component, the AdapterState will tell you if there is a connection or not.
Actually, the query EnumerateJobStatus from the same class does exactly what I want, but I'm gonna mark your answer as accepted anyway ![]()
The use-case here is self-resolving Managed Alerts, in case you were wondering ![]()
I'll take it!