private byte[] Check_Reboot_Server() { //Stop Make Sure That Interface is Backward Compatible. Create New Function / Procedure if Parameter List Changes //Stop Make Sure That Interface is Backward Compatible. Create New Function / Procedure if Parameter List Changes //Stop Make Sure That Interface is Backward Compatible. Create New Function / Procedure if Parameter List Changes DataSet DataSet = new DataSet(); DataTable DataTable = new DataTable("ReturnValues"); DataTable.Columns.Add("REBOOT_IND", typeof(String)); DataTable.Columns.Add("MACHINE_NAME", typeof(String)); DataTable.Columns.Add("MACHINE_IP", typeof(String)); DataSet.Tables.Add(DataTable); DataRow DataRow = DataTable.NewRow(); DataSet.Tables["ReturnValues"].Rows.Add(DataRow); bool blnReboot = false; string strBaseDirectory = AppDomain.CurrentDomain.BaseDirectory; #if (DEBUG) strBaseDirectory += "bin\\"; #endif //2013-07-18 DirectoryInfo di = new DirectoryInfo(strBaseDirectory); FileInfo[] fiFiles = di.GetFiles("*.*_"); foreach (FileInfo fi in fiFiles) { if (fi.Name == "FingerPrintClockTimeAttendanceService.exe_" | fi.Name == "FingerPrintClockTimeAttendanceServiceStartStop.exe_" | fi.Name == "FingerPrintClockServiceStartStop.dll_") { continue; } else { blnReboot = true; break; } } if (blnReboot == true) { DataSet.Tables["ReturnValues"].Rows[0]["REBOOT_IND"] = "Y"; try { DataSet.Tables["ReturnValues"].Rows[0]["MACHINE_NAME"] = System.Net.Dns.GetHostName(); } catch { DataSet.Tables["ReturnValues"].Rows[0]["MACHINE_NAME"] = "UNKNOWN"; } try { DataSet.Tables["ReturnValues"].Rows[0]["MACHINE_IP"] = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList[0].ToString(); } catch { DataSet.Tables["ReturnValues"].Rows[0]["MACHINE_IP"] = "UNKNOWN"; } } DataSet.AcceptChanges(); //Make Sure Client DB Has latest Triggers clsDBConnectionObjects.Check_Client_Triggers(); byte[] bytCompress = clsDBConnectionObjects.Compress_DataSet(DataSet); DataSet.Dispose(); DataSet = null; return(bytCompress); }