void Initialize() { be = new ChunkingBindingElement(); tcpbe = new TcpTransportBindingElement(); tcpbe.TransferMode = TransferMode.Buffered; //no transport streaming tcpbe.MaxReceivedMessageSize = ChunkingUtils.ChunkSize + 100 * 1024; //add 100KB for headers this.SendTimeout = new TimeSpan(0, 5, 0); this.ReceiveTimeout = this.SendTimeout; }
public override BindingElement Clone() { ChunkingBindingElement clone = new ChunkingBindingElement(); return(clone); }