This documentation is archived and is not being maintained.

SynchronousReceiveBehavior Class

Controls whether channels listen synchronously or asynchronously.

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

public class SynchronousReceiveBehavior : IEndpointBehavior

Use this behavior to instruct the channel listener to use a synchronous receive rather than the default, asynchronous. Using SynchronousReceiveBehavior instructs WCF to issue a new thread to pump for each accepted channel. If there are a lot of channels there is the possibility of running out of threads.

You can also set this value using the <synchronousReceive> element in an application configuration file.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0