Uredi

Deli z drugimi prek


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
SynchronousReceiveBehavior
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()

Creates an instance of the SynchronousReceiveBehavior class.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

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.

Applies to