Exemplo n.º 1
0
 /// <summary>
 /// Add the given key-value pair to the Trigger's <see cref="JobDataMap" />.
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <returns>the updated TriggerBuilder</returns>
 /// <seealso cref="ITrigger.JobDataMap" />
 public TriggerBuilder UsingJobData(JobDataMap newJobDataMap)
 {
     // add data from new map to existing map (overrides old values)
     foreach (string k in newJobDataMap.Keys)
     {
         jobDataMap.Put(k, newJobDataMap.Get(k));
     }
     return(this);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add the given key-value pair to the Trigger's <see cref="JobDataMap" />.
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <returns>the updated TriggerBuilder</returns>
 /// <seealso cref="ITrigger.JobDataMap" />
 public TriggerBuilder UsingJobData(JobDataMap newJobDataMap)
 {
     // add any existing data to this new map
     foreach (string k in jobDataMap.Keys)
     {
         newJobDataMap.Put(k, jobDataMap.Get(k));
     }
     jobDataMap = newJobDataMap; // set new map as the map to use
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Add the given key-value pair to the Trigger's <see cref="JobDataMap" />.
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <returns>the updated TriggerBuilder</returns>
 /// <seealso cref="ITrigger.JobDataMap" />
 public TriggerBuilder UsingJobData(JobDataMap newJobDataMap)
 {
     // add data from new map to existing map (overrides old values)
     foreach (string dataKey in jobDataMap.Keys)
     {
         newJobDataMap.Put(dataKey, jobDataMap.Get(dataKey));
     }
     jobDataMap = newJobDataMap; // set new map as the map to use
     return(this);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Add the given key-value pair to the Trigger's <see cref="JobDataMap" />.
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <returns>the updated TriggerBuilder</returns>
 /// <seealso cref="ITrigger.JobDataMap" />
 public TriggerBuilder UsingJobData(JobDataMap newJobDataMap)
 {
     // add data from new map to existing map (overrides old values)
     foreach (string k in newJobDataMap.Keys)
     {
         jobDataMap.Put(k, newJobDataMap.Get(k));
     }
     return this;
 }