4 writes to MaxStringContentLength
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
FormattingUtilities.cs (1)
29MaxStringContentLength = int.MaxValue
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerInputFormatterTest.cs (1)
437formatter.XmlDictionaryReaderQuotas.MaxStringContentLength = 2;
XmlSerializerInputFormatterTest.cs (1)
454formatter.XmlDictionaryReaderQuotas.MaxStringContentLength = 10;
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\EncoderHelpers.cs (1)
21bufferedReadQuotas.MaxStringContentLength = EncoderDefaults.BufferedReadDefaultMaxStringContentLength;
17 references to MaxStringContentLength
System.Private.DataContractSerialization (7)
System\Xml\XmlBaseReader.cs (3)
1536if (value.Length > _quotas.MaxStringContentLength) 1537XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(this, _quotas.MaxStringContentLength); 1541return base.ReadContentAsString(_quotas.MaxStringContentLength);
System\Xml\XmlBinaryReader.cs (2)
112if (value.Length > Quotas.MaxStringContentLength) 113XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(this, Quotas.MaxStringContentLength);
System\Xml\XmlDictionaryReader.cs (2)
383return ReadContentAsString(Quotas.MaxStringContentLength); 450return ReadString(Quotas.MaxStringContentLength);
System.ServiceModel.Primitives (8)
Internals\System\Xml\XmlMtomReader.cs (2)
1444int stringContentQuota = Quotas.MaxStringContentLength; 1450XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(this, Quotas.MaxStringContentLength);
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (2)
247if (_readerQuotas.MaxStringContentLength != binary.ReaderQuotas.MaxStringContentLength)
System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (2)
208if (_readerQuotas.MaxStringContentLength != mtom.ReaderQuotas.MaxStringContentLength)
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (2)
196if (_readerQuotas.MaxStringContentLength != text.ReaderQuotas.MaxStringContentLength)
UnitTests.Common (2)
TestHelpers.cs (2)
29&& a.MaxStringContentLength == b.MaxStringContentLength;