I know that Asycronous Delegates are used for implementing Call back functionality in .NET.
I want to know
- Is it possible to use Callback using ThreadPool?
- Can I use as many BackgroundWorkers as possible? What I exactly want to know is, Is there any additional overhead involved in using BackgroundWorker instead of ThreadPool/AsyncDelegates/Thread Class?
In response to your first question (if I understood correctly), the answer is yes: I think you are looking for the
AsyncOperationclass, which can handle reporting progress and completed events back to the calling thread using itsPostandPostOperationCompletedmethods. This is what theBackgroundWorkeris doing under the hood.See: AsyncOperation Class