开发者

.net IPC channel connection notification

开发者 https://www.devze.com 2023-02-20 06:22 出处:网络
I\'ve created an IPC channel in .NET2 using RegisterWellKnownClientType and RegisterWellKnownServerType.

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

精彩评论

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