private void ExcuteWork(object sender, System.Timers.ElapsedEventArgs e) { try { Utility.WriteLog("Start Timer tick ", "Normal"); MainProcess main = new MainProcess(); main.RunningProcessModelAndPart(); main.RunningProcessServiceManual(); } catch (Exception ex) { Utility.WriteLog("Error execute time tick : " + ex.Message, "Error"); } }
static void Main(string[] args) { Utility.WriteLog("############################################################", "Normal"); Utility.WriteLog("ImportExcel Console started " + System.DateTime.Now.ToString(), "Normal"); MainProcess Main = new MainProcess(); Main.RunningProcessModelAndPart(); Main.RunningProcessServiceManual(); Main.RunningProcessModelBL(); Utility.WriteLog("ImportExcel Console ended " + System.DateTime.Now.ToString(), "Normal"); Utility.WriteLog("############################################################", "Normal"); Environment.Exit(0); }