I have a List<MyClass> with a N numbers of items. I process with the following code
foreach (var item in myList)
{
ThreadPool.QueueUserWorkItem(DoWorkWithItem, item);
}
private void DoWorkWithItem(object threadContext)
{
///...
}
but i need get report what item was proccessed, where i can get a Event or something for this task
create event and call it after threat iteration finished, like this:
or use
BackgroundWorker, it has this event