public void FireError(JobErrorEventArgs e)
 {
     this.RaiseEvent(this.Error, e);
 }
 /// <summary>
 /// Raises the JobRunner's Error event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void JobRunnerError(object sender, JobErrorEventArgs e)
 {
     lock (this)
     {
         if (this.EventSink != null)
         {
             this.EventSink.FireError(e);
         }
     }
 }
 /// <summary>
 /// Raises the runner's Error event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private static void RunnerError(object sender, JobErrorEventArgs e)
 {
     if (Error != null)
     {
         Error(sender, e);
     }
 }