Hi I want to implement the event-based asynchronous pattern using c#. The Microsoft documentation below is really helpful but quite rightly it leaves out the implementation details.
http://msdn.microsoft.com/en-us/library/ms228969.aspx
What are my options for implementing this pattern? Should I use the Delegate.BeginInvoke, ThreadPool.QueueUserWorkItem, new Thread(), BackgroundWorker class, or something else?
I'm creating a simple code library. It should be usable in a Windows form, console app, or ASP.NET context.
It would be great to see some sample code.