WCF maxReceivedMessagesize 和 readerquotas [英] WCF maxReceivedMessagesize and readerquotas

查看:31
本文介绍了WCF maxReceivedMessagesize 和 readerquotas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两者的根本区别是什么?在服务的服务器端,我使用 readerQuotas 来容纳大字符串长度 (Int32.MaxValue).那么 maxReceivedMessagesize 有什么意义呢?

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). What is the significance of maxReceivedMessagesize then?

推荐答案

maxReceivedMessagesize 是消息的总大小.

readerQuotas 是例如邮件部分的大小消息中字符串的长度.

readerQuotas are the size of parts of the message for example the length of a string in the message.

两者都需要,所以设置得足够高以让您的消息通过,通常默认值就可以了.

You need both of them so be set high enough for your message to go through, often the defaults will be OK.

这篇关于WCF maxReceivedMessagesize 和 readerquotas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆