Example #1
0
 public NettyBody(NettyCodeEnum codeEnum, string reqId)
 {
     this.code  = (int)codeEnum;
     this.msg   = codeEnum.ToString();
     this.reqId = reqId;
     this.time  = UtilHelper.GetCurrentTimeStamp();
 }
Example #2
0
 public NettyBody(NettyCodeEnum codeEnum)
 {
     this.code  = (int)codeEnum;
     this.msg   = codeEnum.ToString();
     this.reqId = Guid.NewGuid().ToString();
     this.time  = UtilHelper.GetCurrentTimeStamp();
 }