在WCF WebApi(预览版6)中,许多WCF绑定属性已移至配置类中。例如:WCF中的ReaderQuota设置WebApi
var config = new HttpConfiguration {MaxReceivedMessageSize = 250001};
<readerQuotas>
的相应设置是什么?例如,我将如何设置像的配置:
<binding name="largeLimits" maxReceivedMessageSize="250001">
<readerQuotas maxStringContentLength="2147483647"/>
</binding>
一看进入HttpConfiguration类的源代码,好像没有财产或ReaderQuotas的任何代码。 – Rajesh 2012-01-19 11:18:08