Use this property to provide the user interface thread affinity that some applications require. For example, a Windows Forms application may be registered as a singleton service object. In this case, all calls into the service must run on the Windows Forms thread. The default case, in which UseSynchronizationContext is set to true, synchronizes all calls to the service to run on the user interface thread.
Note that the thread used is the current synchronization thread when DuplexChannelFactory<(Of <(TChannel>)>)..::.CreateChannel or DuplexClientBase<(Of <(TChannel>)>)..::.CreateChannel is called. In the case of an Windows Forms application, this means that these calls should occur after a call to the Application..::.Run method.