During an initialization phase, the ITask interface provides your custom task with injected dependent objects, see here for more details on these objects. One challenge while writing a custom ITask implementation is debugging your task with real-time injected values. One approach is to have your debugger launch a finished or failed job in a similar environment as the IIS Transform Manager would.
Here are the high level tasks to achieve this:
- Run and locate a job instance
- Identify the program and arguments to execute
- Setup the working environment
- Run the command under your debugger