/// <summary>
 /// Aborts the specified Queue delegate..
 /// </summary>
 /// <param name="target">The target.</param>
 /// <returns>Status of abort operation on item queue</returns>
 public static WorkItemStatus AbortDelegate(WorkItem target)
 {
     return(AbortableThreadPool.Cancel(target, true));
 }
 /// <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)));
 }
Exemplo n.º 3
0
 public static WorkItem InvokeDelegate(Delegate target, params object[] args)
 {
     return(AbortableThreadPool.QueueUserWorkItem(waitCallback_0, new Class28(target, args)));
 }
 /// <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)));
 }
Exemplo n.º 5
0
 public static WorkItem InvokeDelegate(Delegate target)
 {
     return(AbortableThreadPool.QueueUserWorkItem(waitCallback_0, new Class28(target, null)));
 }