asynchronous calls in asp.net

Posted by lockedscope on Stack Overflow See other posts from Stack Overflow or by lockedscope
Published on 2010-05-29T13:47:46Z Indexed on 2010/05/29 13:52 UTC
Read the original article Hit count: 221

Filed under:
|

in this sample, two threads created; a worker thread created by BeginInvoke and an I/O completion thread created by SendAsync method.

but another author in his UnsafeQueueNativeOverlapped example, don't recommend this.

i want to use SendAsync or ...Async in an asp.net page and i want to use PageAsyncTask. however, its BeginEventHandler requires AsyncResult to be returned which SendAsync does not return.

afaik, event based async pattern is the most recommended way so how could we call SendAsync or any ...Async methods without creating two threads and hurting the performance?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asynchronous