Condividi tramite


IBackgroundDispatcher Interface

Definition

An object that can be used to execute a method on a threadpool thread while correctly managing system state, such as flowing ETW activities from the current thread to the threadpool thread.

public interface class IBackgroundDispatcher
public interface IBackgroundDispatcher
type IBackgroundDispatcher = interface
Public Interface IBackgroundDispatcher
Derived

Methods

BeginInvoke(WaitCallback, Object, AsyncCallback, Object)

Works the same as BeginInvoke would for any other delegate, except that it also manages system state correctly.

EndInvoke(IAsyncResult)

Works the same as EndInvoke would for any other delegate, except that it also manages system state correctly.

QueueUserWorkItem(WaitCallback, Object)

Works the same as QueueUserWorkItem(WaitCallback, Object), except that it also manages system state correctly.

QueueUserWorkItem(WaitCallback)

Works the same as QueueUserWorkItem(WaitCallback), except that it also manages system state correctly.

Applies to