Ejemplo n.º 1
0
 /// <summary>
 /// Set the JobDetail's <see cref="JobDataMap" />, adding any values to it
 /// that were already set on this JobBuilder using any of the
 /// other 'usingJobData' methods.
 /// </summary>
 ///<returns>the updated JobBuilder</returns>
 /// <seealso cref="IJobDetail.JobDataMap" />
 public JobBuilder UsingJobData(JobDataMap newJobDataMap)
 {
     // add any existing data to this new map
     foreach (string key in jobDataMap.KeySet())
     {
         newJobDataMap.Put(key, jobDataMap.Get(key));
     }
     jobDataMap = newJobDataMap; // set new map as the map to use
     return(this);
 }