public void LogDBStatus(string piServer) { piServer = string.IsNullOrEmpty(piServer) ? Constant.PIPServer : piServer; IStatistic st = DataAccess.CreateStatistic(piServer); st.LogSessionDB(); st.LogTotalSessionDB(); st.LogProcessDB(); st.LogTotalProcessDB(); AlertMail(st); }