SynchronousReceiveBehavior Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
IEndpointBehavior.Validate(ServiceEndpoint) |
Not implemented in this class. |