SynchronousReceiveBehavior Class

 

Controls whether channels listen synchronously or asynchronously.

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

System.Object
  System.ServiceModel.Description.SynchronousReceiveBehavior

public class SynchronousReceiveBehavior : IEndpointBehavior

NameDescription
System_CAPS_pubmethodSynchronousReceiveBehavior()

Creates an instance of the SynchronousReceiveBehavior class.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 3.0

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

Return to top
Show: