How can I tell if a DCOM server I am connected to has been destroyed?
All,
I have a C# client app which connects to a C++/MFC DCOM server. The DCOM
server implements a sink object aswell as an interface on which the C#
client calls methods.
I need to know in my C# app if this server has disconnected and I'm unsure
of to how to do this. In C++ I could identify this in the destructor of the
sink object but C# does not provide such abilities.
I know we can add a method to the sink which I can detect and react
proactively, however if the DCOM server is killed or similarly shuts down in
an unintended way then I still need to cater for this.
Can anyone suggest a good way of doing this?
PT