DispatchRuntime.SynchronizationContext Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 SynchronizationContext SynchronizationContext { get; set; }

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