SynchronousReceiveBehavior 类

定义

控制通道是同步侦听还是异步侦听。

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
继承
SynchronousReceiveBehavior
实现

注解

使用此行为可指示通道侦听器使用同步接收,而不是默认异步接收。 使用 SynchronousReceiveBehavior 指示 WCF 发出一个新线程来为每个接受的通道进行泵送。 如果有很多通道,则可能耗尽线程。

还可以在应用程序配置文件中使用 <syncReceive> 设置此值。

构造函数

名称 说明
SynchronousReceiveBehavior()

创建 SynchronousReceiveBehavior 类的实例。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

未在此类中实现。

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

未在此类中实现。

IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

ReceiveSynchronously 属性设置为 true

IEndpointBehavior.Validate(ServiceEndpoint)

未在此类中实现。

适用于