/// <summary> /// 使用多路连接发送数据 /// </summary> /// <param name="serviceName"></param> /// <param name="method"></param> /// <param name="args"></param> /// <returns></returns> public byte[] Request(string serviceName, string method, byte[] args, int retry = 5) { _retry = retry; return(ReTryHelper.Do(() => this.GetClient().Request(serviceName, method, args, _timeOut), retry)); }
/// <summary> /// 使用多路连接发送数据 /// </summary> /// <param name="serviceName"></param> /// <param name="method"></param> /// <param name="args"></param> /// <returns></returns> public byte[] Request(string serviceName, string method, byte[] args) { return(ReTryHelper.Do(() => this.GetClient().Request(serviceName, method, args), _retry)); }