What is a proper implementation of the IAsyncResult interface?

后端 未结 2 1212
太阳男子
太阳男子 2021-02-19 11:26

I\'m looking into adding some flexibility to a class that I\'ve created which establishes a connection to a remote host and then performs an exchange of information (a handshake

2条回答
  •  猫巷女王i
    2021-02-19 11:56

    You can wrap the invocation in the IAsyncResult implementation. Since I've been looking at multithreading lately, I've posted about it here (it has links to other implementations of the interface too):

    http://msmvps.com/blogs/luisabreu/archive/2009/06/15/multithreading-implementing-the-iasyncresult-interface.aspx

提交回复
热议问题