Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IBackgroundDispatcher Interface

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Exposes functionality that can be used to execute a method on a thread pool thread while correctly managing system state, such as flowing ETW activities from the current thread to the thread pool thread. Introduced in Windows PowerShell 3.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public interface IBackgroundDispatcher

NameDescription
System_CAPS_pubmethodBeginInvoke(WaitCallback, Object, AsyncCallback, Object)

Extends the BeginInvoke method for a delegate by correctly managing the system state. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodEndInvoke(IAsyncResult)

Extends the EndInvoke method for a delegate by correctly managing the system state. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodQueueUserWorkItem(WaitCallback)

Extends ThreadPool.QueueUserWorkItem(WaitCallback) by correctly managing the system state. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodQueueUserWorkItem(WaitCallback, Object)

Extends ThreadPool.QueueUserWorkItem(WaitCallback, Object) by correctly managing system state. Introduced in Windows PowerShell 3.0.

Return to top
Show: