using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Sog; namespace SMCenter { public class Program { public static void Main(string[] args) { long iNow = DateTimeOffset.Now.ToUnixTimeSeconds(); bool bServerRunMode = false; try { AppParam appParam = new AppParam(args,true); if(appParam.RunMode == AppRunMode.Start) { bServerRunMode = true; } SMCenterApp entry = new SMCenterApp(appParam); entry.Start(); } catch (Exception ex) { if(bServerRunMode) { TraceLog.Exception(ex,true); } else { Console.WriteLine(ex.Message); Console.WriteLine(ex.StackTrace); } } } } }