/// <summary>
 /// Raises the <see cref="E:JobStateChanged" /> event.
 /// </summary>
 /// <param name="args">The <see cref="JobEventArgs"/> instance containing the event data.</param>
 private void OnJobStateChanged(JobEventArgs args)
 {
     var handler = this.JobStateChanged;
     if (handler != null)
     {
         handler(this, args);
     }
 }
 /// <summary>
 /// Raises the <see cref="E:JobCompleted" /> event.
 /// </summary>
 /// <param name="args">The <see cref="JobEventArgs"/> instance containing the event data.</param>
 private void OnJobCompleted(JobEventArgs args)
 {
     var handler = this.JobCompleted;
     if (handler != null)
     {
         handler(this, args);
     }
 }