When to use AsyncOperation and AsyncOperationManager
- by Sir Psycho
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