public List <RmsReportMonitoringRaw> Monitoring(string mType, ClientResult clientResult) { try { var ret = new List <RmsReportMonitoringRaw>(); if (string.IsNullOrEmpty(mType)) { return(ret); } if (clientResult == null) { return(ret); } if (mType.ToLower() == "performance") { var ps = new PerformanceService(); return(ps.Monitoring(clientResult)); } else if (mType.ToLower() == "device") { ret = CheckDevice(clientResult); } else { throw new Exception("Monitoring Type Not Match. mType=" + mType); } return(ret); } catch (Exception ex) { throw new RMSAppException(this, "0500", "Monitoring failed. " + ex.Message, ex, false); } }