The BasicHttpBinding
class has a ReaderQuotas
property that you can access to override attributes such as MaxArrayLength
, MaxBytesPerRead
, etc.
How can I access ReaderQuotas
to achieve the same thing when using an HttpTransportBindingElement
within a CustomBinding
instead of BasicHttpBinding
?
i.e.:
var bindingElement = new HttpTransportBindingElement();
bindingElement.MaxBufferSize = 65536; // works
bindingElement.ReaderQuotas.MaxArrayLength = 65536; // error no ReaderQuotas member
var binding = new CustomBinding(bindingElements);
binding .ReaderQuotas.MaxArrayLength = 65536; // also no ReaderQuotas member
Thanks in advance for your help.