taskWithContext

Registers a task handler with TaskExecutionContext.