DispatchRuntime::SynchronizationContext Property

 

Gets or sets the synchronization context that is used to invoke the service operations.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property SynchronizationContext^ SynchronizationContext {
	SynchronizationContext^ get();
	void set(SynchronizationContext^ value);
}

Property Value

Type: System.Threading::SynchronizationContext^

The SynchronizationContext object used to determine on which thread the service operation is invoked.

The return value can be null. If this value is not null, then this synchronization context is used to invoke the service operations on the correct thread.

.NET Framework
Available since 3.0
Return to top
Show: