void ProcessConnectionReq(IEnumerable <Message> messages) { uint id = m_lastCxnReqMsgID; IEnumerable <Message> reqs = messages.Where(m => m.ID > id); if (reqs.Any()) { var respList = new List <Message>(); m_lastCxnReqMsgID = reqs.Max(m => m.ID); foreach (Message req in reqs) { Dbg.Log($"Processing connection msg {req.ID} ..."); Message resp = m_cxnReqProcessors[req.MessageCode](req); if (resp != null) { respList.Add(resp); } } string respFile = AppPaths.ConnectionRespPath; DialogEngin.AppendConnectionsResp(respFile, respList); AddUpload(Names.ConnectionRespFile); } }