/// <summary>
 /// called when a thread completes processing
 /// </summary>
 protected void OnThreadCompleted(bool bHadException, Exception ex)
 {
     try
     {
         ThreadCompleted?.Invoke(this, bHadException, ex);
     }
     catch { }
 }
 private static void OnThreadCompleted()
 {
     Dispatcher.CurrentDispatcher.Invoke(new Action(delegate
     {
         if (ThreadCompleted != null)
         {
             ThreadCompleted.Invoke(null, new EventArgs());
         }
     }));
 }
Exemple #3
0
 /// <summary>
 /// called when a thread completes processing
 /// </summary>
 protected void OnThreadCompleted(bool bHadException, Exception ex)
 {
     try
     {
         if (ThreadCompleted != null)
         {
             ThreadCompleted.Invoke(this, bHadException, ex);
         }
     }
     catch { }
 }
Exemple #4
0
 /// <summary>
 /// called when a thread completes processing
 /// </summary>
 private void OnThreadCompleted(bool bHadException, Exception ex)
 {
     try
     {
         if (ThreadCompleted != null)
         {
             ThreadCompleted.Invoke(this, bHadException, ex);
         }
     }
     catch (Exception)
     {
     }
 }