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