/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { Bootstrap = new Bootstrap(); Shell = new Shell(); var unprocessed = Shell.ProcessArguments(args, Bootstrap.Container, typeof(TopLevelCommands)); if (unprocessed.Length > 0) { log.Warn("Unprocessed arguments: "+string.Join(", ", unprocessed)); } //simple console wait if (args.Length == 0) { InitComponents(); ProcessLock.LockByKey(); DisposeComponents(); } else if(Shell.IsShellEnabled) { InitComponents(); Shell.StartLineEditor(); DisposeComponents(); } Bootstrap.Dispose(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { Bootstrap = new Bootstrap(); Shell = new Shell(); var unprocessed = Shell.ProcessArguments(args, Bootstrap.Container, typeof(TopLevelCommands)); if (unprocessed.Length > 0) { //var noServiceFlag = unprocessed.Where(x => x.Contains("no")); //if (noServiceFlag.Count()>0) //{ // unprocessed = unprocessed.Where(x => !noServiceFlag.Contains(x)).ToArray(); //} if (unprocessed.Length > 0) { log.Warn("Unprocessed arguments: " + string.Join(", ", unprocessed)); } } //Bootstrap.Container.Resolve<PerformanceCountersTracker>().Start( // TimeSpan.FromSeconds(10), "Performance"); //simple console wait));) if (args.Length == 0) { InitComponents(); ProcessLock.LockByKey(); DisposeComponents(); } else if (Shell.IsShellEnabled) { Shell.StartLineEditor(); } Bootstrap.Dispose(); //ProcessLock.LockByLine(); }