.net IPC channel connection notification
I've created an IPC channel in .NET2 using RegisterWellKnownClientType and RegisterWellKnownServerType.
It doesnt m开发者_StackOverflow中文版atter whether the server or client is created first - they'll connect to each other once they're both running.
The problem is that the only way I've found to know when the connection is made, is by trying to call a function, and catching the exception if they're not.
Is there an event or something I can hook up to that will tell me when the channel is connected? Currently in the client, I use a timer to poll for the connection.
(BTW, i'm not interested in using WCF as we're stuck in .NET2)
精彩评论