【发布时间】:2012-01-19 19:18:42
【问题描述】:
在 WCF WebApi(预览版 6)中,许多 WCF 绑定属性已移至配置类中。例如:
var config = new HttpConfiguration {MaxReceivedMessageSize = 250001};
<readerQuotas>对应的设置是什么?例如,我将如何设置如下配置:
<binding name="largeLimits" maxReceivedMessageSize="250001">
<readerQuotas maxStringContentLength="2147483647"/>
</binding>
【问题讨论】:
-
查看了 HttpConfiguration 类的源代码,似乎没有 ReaderQuotas 的属性或任何代码。
标签: wcf wcf-web-api