private static void CaptureRectRegion(WorkerTask.JobLevel2 job2) { WorkerTask csTask = DefaultWorkerTask(); csTask.StartWork(job2); if (csTask.IsNotCanceled()) { csTask.PublishData(); Console.WriteLine(csTask.ToErrorString()); PostPublishTask(csTask); } }