protected override WorkState Do() { SuspendedJob suspended = JobConductorService.Default.SuspendJob(Job);; WorkState <SuspendedJob> result = new WorkState <SuspendedJob>(this, suspended); result.Status = Status.Suspended; return(result); }
protected override WorkState Do(WorkState currentWorkState) { SuspendedJob suspended = JobConductorService.SuspendJob(Job);; WorkState <SuspendedJob> result = new WorkState <SuspendedJob>(this, suspended) { Status = Status.Suspended }; return(result); }
public SuspendedJob SuspendJob(Job job) { SuspendedJob suspended = new SuspendedJob(SuspendedJobIpcMessageStore, job); return(suspended); }