public void initialize <MReq, MRes>() where MReq : IRosMessage, new() where MRes : IRosMessage, new() { MReq req = new MReq(); MRes res = new MRes(); RequestMd5Sum = req.MD5Sum(); ResponseMd5Sum = res.MD5Sum(); RequestType = req.msgtype(); ResponseType = res.msgtype(); }
public void Initialize <MReq, MRes>() where MReq : RosMessage, new() where MRes : RosMessage, new() { MReq req = new MReq(); MRes res = new MRes(); RequestMd5Sum = req.MD5Sum(); ResponseMd5Sum = res.MD5Sum(); RequestType = req.MessageType; ResponseType = res.MessageType; this.connectionTask = HandleConnection(); }