Activity.BindToCurrentThread Method

Definition

Binds the user-defined work to the current thread.

public:
 void BindToCurrentThread();
public void BindToCurrentThread ();
member this.BindToCurrentThread : unit -> unit
Public Sub BindToCurrentThread ()

Remarks

BindToCurrentThread binds the batch work that is submitted by the SynchronousCall or AsynchronousCall methods to the current single-threaded apartment (STA). BindToCurrentThread has no effect if the current thread is being run in the multithreaded apartment (MTA). The current thread model is determined by the configuration of the ThreadPool property of the ServiceConfig object.

Applies to