I am writing an application whose job is to run other programs. A scheduler
of sorts.
Each of the tasks it runs are like plug-ins, they are in other assemblys
and created when needed.
After the scheduler runs a task, using the QueueUserWorkItem method, I want
to call a method in the scheduler to check the task to see if it finished
successfully or not and take some action.
This action will be the same for all of the tasks, so I only want to code
it once in the scheduler.
So, in essence, I believe I want to return a value from the callback method,
yes?
I was readying www.yoda.arachsys.com's article on multithreading but I cannot
see what I need to do.
It looks as though I need to use BeginInvoke / EndInvoke instead of the shortcut
QueueUserWorkItem.
Can someone point me in the right direction?
--Brian