Beispiel #1
0
 public bool LaunchJob()
 {
     new Action(RunJobBackground).BeginInvoke(null, null);
     _event.WaitOne(UiDelayMilliseconds);
     if (!IsComplete)
     {
         Ui.DisplayLongOperationUi(this);
     }
     _event.WaitOne();
     if (_exception != null)
     {
         throw new ApplicationException("An exception occurred running the job", _exception);
     }
     return(!WasCancelled);
 }