Beispiel #1
0
 /// <summary>
 /// 引发全部完成事件
 /// </summary>
 /// <param name="args"></param>
 private void OnAllCompleted(CompetedEventArgs args)
 {
     if (AllCompleted != null)
     {
         try
         {
             AllCompleted(args);//全部完成事件
         }
         catch { }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 引发单个完成事件
 /// </summary>
 /// <param name="pendingValue"></param>
 /// <param name="args"></param>
 private void OnOneCompleted(T pendingValue, CompetedEventArgs args)
 {
     if (OneCompleted != null)
     {
         try
         {
             OneCompleted(pendingValue, args);
         }
         catch { }
     }
 }
Beispiel #3
0
 /// <summary>
 /// 引发全部完成事件
 /// </summary>
 /// <param name="args"></param>
 private void OnAllCompleted(CompetedEventArgs args)
 {
     if (AllCompleted != null)
     {
         try
         {
             AllCompleted(args);//全部完成事件
         }
         catch (Exception ex)
         {
             System.Console.WriteLine(ex);
         }
     }
 }