SynchronousReceiveBehavior SynchronousReceiveBehavior SynchronousReceiveBehavior SynchronousReceiveBehavior Class

Definition

Controls whether channels listen synchronously or asynchronously.

public ref class SynchronousReceiveBehavior : System::ServiceModel::Description::IEndpointBehavior
public class SynchronousReceiveBehavior : System.ServiceModel.Description.IEndpointBehavior
type SynchronousReceiveBehavior = class
    interface IEndpointBehavior
Public Class SynchronousReceiveBehavior
Implements IEndpointBehavior
Inheritance
SynchronousReceiveBehaviorSynchronousReceiveBehaviorSynchronousReceiveBehaviorSynchronousReceiveBehavior
Implements

Remarks

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> in an application configuration file.

Constructors

SynchronousReceiveBehavior() SynchronousReceiveBehavior() SynchronousReceiveBehavior() SynchronousReceiveBehavior()

Creates an instance of the SynchronousReceiveBehavior class.

Explicit Interface Implementations

IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection) IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection) IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection) IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

Not implemented in this class.

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

Not implemented in this class.

IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

Sets the ReceiveSynchronously property to true.

IEndpointBehavior.Validate(ServiceEndpoint) IEndpointBehavior.Validate(ServiceEndpoint) IEndpointBehavior.Validate(ServiceEndpoint) IEndpointBehavior.Validate(ServiceEndpoint)

Not implemented in this class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to