开发者

.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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜