Example #1
0
 /// <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)));
 }
Example #2
0
 /// <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)));
 }