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.
精彩评论