Example #1
0
 public static void SafeInvokeAction(this AsyncWorkAction action, AsyncWorkControl workControl)
 {
     if (action != null)
     {
         action(workControl);
     }
 }
Example #2
0
 public static void SafeInvokeAction <TEventArgs>(this AsyncWorkEventHandler <TEventArgs> action, AsyncWorkControl workControl, TEventArgs e) where TEventArgs : EventArgs
 {
     if (action != null)
     {
         action(workControl, e);
     }
 }