开发者

Waiting for an asynchronous response?

I am designing a multiclient/server software in c#. Right now, I am using it as asynchronous.

In some cases, I want client side to wait for the answe开发者_StackOverflow社区r.

For example, I need to send server a command to fetch me some info from the database and client program should continue according to the fetched data. How can i achieve this?


You could wait on the IAsyncResult.WaitHandle, if this interface is being used in your scenario.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜