Example #1
0
 /// <summary>
 /// 执行委托操作
 /// </summary>
 /// <param name="target">目标委托对象</param>
 public static WorkItem InvokeDelegate(Delegate target)
 {
     return(AbortableThreadPool.QueueUserWorkItem(dynamicInvoker, new TargetInfo(target, null)));
 }
Example #2
0
 /// <summary>
 /// 执行委托操作
 /// </summary>
 /// <param name="target">目标委托对象</param>
 /// <param name="args">参数</param>
 public static WorkItem InvokeDelegate(Delegate target, params object[] args)
 {
     return(AbortableThreadPool.QueueUserWorkItem(dynamicInvoker, new TargetInfo(target, args)));
 }