/// <summary> /// 构造函数, 不需要参数 /// </summary> public RpcTcpClientChannel() : base("tcp") { RpcTcpBufferManager.Initialize(); RpcTcpSimplexConnectionManager.Initialize(); _simplexConnections = new Dictionary <ServerUri, RpcTcpSimplexConnection>(); _duplexConnections = new Dictionary <ServerUri, RpcTcpDuplexConnection>(); p_channelSettings = new RpcChannelSettings() { MaxBodySize = 512 * 1024 * 1024, SupportModes = RpcChannelSupportModes.Connection | RpcChannelSupportModes.DuplexConnection, Version = "4.3", Timeout = RpcTcpBufferManager.Configuration.ChannelItem.Timeout, ConcurrentConnection = RpcTcpBufferManager.Configuration.ChannelItem.SimplexConnections, }; RpcTcpTransactionManager.Initialize(); }