Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Custom constructor using a name.
 /// </summary>
 /// <param name="name"></param>
 protected JobBuilderHelper(string name)
 {
     Properties = new CommonJobProperties {
         Name = name
     };
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Custom constructor using a name.
 /// </summary>
 /// <param name="name"></param>
 protected JobBuilderHelper(string name)
 {
     Properties = new CommonJobProperties { Name = name };
 }
Exemplo n.º 6
0
 /// <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);
 }