开发者

Waiting for an asynchronous response?

开发者 https://www.devze.com 2023-03-08 19:08 出处:网络
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.

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

精彩评论

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