When to use AsyncOperation and AsyncOperationManager

Posted by Sir Psycho on Stack Overflow See other posts from Stack Overflow or by Sir Psycho
Published on 2009-05-15T15:29:33Z Indexed on 2010/03/26 14:33 UTC
Read the original article Hit count: 388

Filed under:
|

Hi,

I've spent many many hours tonight reading up on implementing the event-based asynchronous pattern

Unfortunately, I haven't been able to find any articles at all on witting a class that only supports one Async invocation.

Every example I've seen assumes that a method call will be called more than once and thus, should have a userState object passed into the MethodNameAsync

You'll see that MS makes mention of this in the third bullet point on this article http://msdn.microsoft.com/en-us/library/ms228974(VS.80).aspx under the "Simultaneously Executing Operations" heading.

But I'm confused. Should I be using AsyncOperation and AsyncOperationManager classes to have asynchronous functionality where a method can only be called by one thread at a time?

A link would also be nice :)

Thanks

© Stack Overflow or respective owner

Related posts about asynchronous

Related posts about .NET