private ResponseCommand createResponseCommand(short cmdCode)
        {
            ResponseCommand command = new RpcResponseCommand();

            command.CmdCode = RpcCommandCode.valueOf(cmdCode);
            return(command);
        }
        private RpcRequestCommand createRequestCommand(short cmdCode)
        {
            RpcRequestCommand command = new RpcRequestCommand();

            command.CmdCode    = RpcCommandCode.valueOf(cmdCode);
            command.ArriveTime = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeMilliseconds();
            return(command);
        }
 static RpcCommandCode()
 {
     __RPC_REQUEST  = new RpcCommandCode("RPC_REQUEST", 0, 1);
     __RPC_RESPONSE = new RpcCommandCode("RPC_RESPONSE", 1, 2);
     _VALUES        = new RpcCommandCode[] { __RPC_REQUEST, __RPC_RESPONSE };
 }