private GatheringPointsInfo CreateGatheringPointsInfo(ParserTypeInfo parserInfo, string alias, string bcrip, string logPath) { var gatherInfo = new GatheringPointsInfo(parserInfo); if (gatherInfo != null) { gatherInfo.AgentIp = GetIpAddress().ToString(); gatherInfo.Alias = alias; gatherInfo.BcrIp = bcrip; gatherInfo.LogFolder = logPath; gatherInfo.Line = alias; gatherInfo.NO = (GetMaxNO() + 1).ToString(); } return(gatherInfo); }
public DataTable SaveToDatatable(string alias, string bcrip, string logPath, string route, string type) { ParserTypeInfo info = GetSpecifiedPaser(route, type); if (info == null) { throw new Exception(ExceptionMessage.NotMatched); } var gatherInfo = CreateGatheringPointsInfo(info, alias, bcrip, logPath); if (gatherInfo != null) { gatheringPoints.Add(gatherInfo); } return(RemoveFakeRecord()); }