My application written in C# makes use of the MessageQueue
class in .NET for communicating messages with another remote application and the MessageQueue should always be "connected" (heartbeat present) with the remote messageQueue under all circumstances. If it is not "connected", then it signals that something is wrong and my application will need to perform some actions such as updating an event log.
Is there a method in the MessageQueue
class that can be used to detecting such breaks in connection?