Beispiel #1
0
 private void RunJobBackground()
 {
     try
     {
         Job(this);
     }
     catch (Exception e)
     {
         if (!WasCancelled)
         {
             _exception = e;
             Console.Out.WriteLine(e);
         }
     }
     finally
     {
         lock (this)
         {
             IsComplete = true;
             _event.Set();
             Ui.LongOperationEnded();
         }
     }
 }