<synchronousReceive> 元素

此配置元素用于指定服务或客户端应用程序中用来接收消息的运行时行为。它不具有任何属性或子元素。

<system.serviceModel>
  <behaviors>
    <endpointBehaviors>
      <endpointBehaviors> 的 <behavior>
        <synchronousReceive> 元素

<synchronousReceive />

属性和元素

属性

无。

子元素

无。

父元素

元素 说明

<endpointBehaviors> 的 <behavior>

指定终结点行为。

备注

此行为用于指示通道侦听器使用同步接收,而不是默认的异步接收。Windows Communication Foundation (WCF) 发出一个新线程,用于为每个接受通道进行抽取。如果有许多通道,则可能出现线程溢出的情况。

另请参见

参考

SynchronousReceiveElement
SynchronousReceiveBehavior