简体   繁体   English

WCF maxReceivedMessagesize和阅读器配额

[英]WCF maxReceivedMessagesize and readerquotas

What is the fundamental difference between the two? 两者之间的根本区别是什么? On the server side on the service, I am using readerQuotas to accomodate large string lengths (Int32.MaxValue). 在服务的服务器端,我正在使用readerQuotas适应较大的字符串长度(Int32.MaxValue)。 What is the significance of maxReceivedMessagesize then? 那么,maxReceivedMessagesize的意义是什么?

maxReceivedMessagesize is the total size of the message. maxReceivedMessagesize是消息的总大小。

readerQuotas are the size of parts of the message for example the length of a string in the message. readerQuotas是消息各部分的大小,例如消息中字符串的长度。

You need both of them so be set high enough for your message to go through, often the defaults will be OK. 您需要将它们都设置为足够高,以使您的消息能够通过,通常默认设置是可以的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM