什么是我需要为app.config中的精简WCF配置所做的最小客户端设置?WCF最小客户端app.config设置
默认的一个是这样的:
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
我能排除,以及如何这么多我需要?
编辑:我应该只是开始剥开的部分,直到它打破?我希望找到一些很好的优化wsHttpBindings,人们有好运。
从问题来看,我们是否应该从服务器或客户端的角度来阐述。最小配置可能不同。无论如何,我猜想不需要任何绑定配置。如果没有任何绑定配置,WCF客户端和服务器*都可以工作得很好。根据问题是针对客户端还是服务器,最小配置可以是“”或“”元素。 –
2016-03-04 14:22:28