/// <summary> /// Executes the delegate. /// </summary> /// <param name="target">The target.</param> public static WorkItem InvokeDelegate(Delegate target) { return(AbortableThreadPool.QueueUserWorkItem(dynamicInvoker, new TargetInfo(target, null))); }
/// <summary> /// Executes the delegate. /// </summary> /// <param name="target">The target.</param> /// <param name="args">The args.</param> public static WorkItem InvokeDelegate(Delegate target, params object[] args) { return(AbortableThreadPool.QueueUserWorkItem(dynamicInvoker, new TargetInfo(target, args))); }