我想增加MaxBufferSize,MaxBufferPoolSize,ReceivedMessageSize,以及readerQuotas maxDepth =“2147483646”maxStringContentLength =“2147483646”maxArrayLength =“2147483646”maxBytesPerRead =“2147483646”maxNameTableCharCount =“2147483646”,这是我的理解我必须在注册过程中更改这些参数。但是我没有看到这样做的任何例子。
我很感激有关此事的任何帮助。
答案 0 :(得分:1)
不知道你是否找到了答案,但它看起来像这样:
builder.Register(
container =>
new ChannelFactory<TService>(
new WSHttpBinding { TransactionFlow = supportTransactionFlow,
MaxReceivedMessageSize = 2147483646,
ReaderQuotas = {
MaxStringContentLength = 2147483646,
MaxDepth = 2147483646,
MaxArrayLength= 2147483646 }},
endpointAddress)).InstancePerDependency();