public virtual IJobDefinition GetSeedJobDefinition(IBatch batch) { return(ManagementService.CreateJobDefinitionQuery(c => c.Id == batch.SeedJobDefinitionId && c.JobType == BatchSeedJobHandler.TYPE) .First()); }
public override IJobDefinition GetExecutionJobDefinition(IBatch batch) { return(ManagementService.CreateJobDefinitionQuery(c => c.Id == batch.BatchJobDefinitionId && c.JobType == BatchFields.TypeProcessInstanceRestart) .First()); }