/// <summary> /// Custom constructor with properties. /// </summary> /// <param name="properties"></param> public CommonJobProperties(CommonJobProperties properties) { Name = properties.Name; Restartable = properties.Restartable; JobRepository = properties.JobRepository; JobParametersIncrementer = properties.JobParametersIncrementer; JobParametersValidator = properties.JobParametersValidator; _jobExecutionListeners = new List <IJobExecutionListener>(properties.JobExecutionListeners); }
/// <summary> /// Create a new builder initialized with any properties in the parent. /// The parent is copied, so it can be re-used /// </summary> /// <param name="parent"></param> protected JobBuilderHelper(JobBuilderHelper parent) { Properties = new CommonJobProperties(parent.Properties); }
/// <summary> /// Custom constructor using a name. /// </summary> /// <param name="name"></param> protected JobBuilderHelper(string name) { Properties = new CommonJobProperties { Name = name }; }
/// <summary> /// Custom constructor with properties. /// </summary> /// <param name="properties"></param> public CommonJobProperties(CommonJobProperties properties) { Name = properties.Name; Restartable = properties.Restartable; JobRepository = properties.JobRepository; JobParametersIncrementer = properties.JobParametersIncrementer; JobParametersValidator = properties.JobParametersValidator; _jobExecutionListeners = new List<IJobExecutionListener>(properties.JobExecutionListeners); }