SynchronousReceiveBehavior Class
Controls whether channels listen synchronously or asynchronously.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | SynchronousReceiveBehavior() | Creates an instance of the SynchronousReceiveBehavior class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEndpointBehavior::AddBindingParameters(ServiceEndpoint^, BindingParameterCollection^) | Not implemented in this class. |
![]() ![]() | IEndpointBehavior::ApplyClientBehavior(ServiceEndpoint^, ClientRuntime^) | Not implemented in this class. |
![]() ![]() | IEndpointBehavior::ApplyDispatchBehavior(ServiceEndpoint^, EndpointDispatcher^) | Sets the ReceiveSynchronously property to true. |
![]() ![]() | IEndpointBehavior::Validate(ServiceEndpoint^) | Not implemented in this class. |
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.
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.



