Passing State

May 5, 2012 at 12:22 AM

I could not find a way to pass state to the tasks. Without state, I don't see a value in this. I want to initialize all objects, pass state and then run continuously. Is there a way to do this?

Tejaswi

Coordinator
Jul 19, 2012 at 1:22 PM

Pass state when? ITask has an Initialize method that you have to implement; its second parameter is object parameters. You can make that whatever you want. Your concrete class of ITask can hang onto that reference and state can be passed via that.

Failing that, this is open source, so fork it and let me know how you go :)