//public Job(Job oJob, bool isNew) //{ // key = isNew ? DateTime.Now : oJob.key; // jobName = oJob.jobName; // dependencyTraversalMode = oJob.dependencyTraversalMode; // config = oJob.config; // arrModules = oJob.arrModules; // modules = oJob.modules; // dependencies = oJob.dependencies; // limiter = oJob.limiter; // jobStats = new JobStats(this); // jobDetails = oJob.jobDetails; // jobState = new State(oJob.JobState); // jobState.CurrentJobCode = key; // jobState.CurrentJobHash = KeyHash; // jobState.JobName = jobName; //} public Job(string _jobName, string _dependencyTraversalMode, JobDetails _jobDetails, GlobalConfigDetails _config) { config = _config; jobName = _jobName; jobStats = new JobStats(this); jobState = new State(_jobName); jobDetails = _jobDetails; dependencyTraversalMode = _dependencyTraversalMode; }
public Job(Job oJob) { key = oJob.key; jobName = oJob.jobName; dependencyTraversalMode = oJob.dependencyTraversalMode; jobStats = new JobStats(this); jobDetails = oJob.jobDetails; jobState = new State(oJob.JobState); config = oJob.config; arrModules = oJob.arrModules; modules = oJob.modules; dependencies = oJob.dependencies; limiter = oJob.limiter; }