使用netNamedPipeBinding传输大数据量的配置

<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding name="Default" closeTimeout="00:01:00" openTimeout="00:01:00" sendTimeout="00:01:00"
receiveTimeout="00:10:00" transactionFlow="false" transactionProtocol="OleTransactions"
maxBufferSize="10485760" maxReceivedMessageSize="10485760">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="10485760"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None" />
</binding>
</netNamedPipeBinding>
</bindings>
<services>
<service name="ClassFullName">
<host>
<baseAddresses>
<add baseAddress="net.pipe://localhost/" />
</baseAddresses>
</host>
<endpoint address="" binding="netNamedPipeBinding" contract="ContrctFullName" bindingConfiguration="Default" />
</service>
</services>
</system.serviceModel>

 

你可能感兴趣的:(bind)