Program.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. using System.Reflection;
  2. using Quadarax.Foundation.Core.NLog;
  3. using Quadarax.Foundation.Core.QConsole;
  4. using Quadarax.Foundation.Core.QConsole.Configuration;
  5. using Quadarax.Foundation.Core.QConsole.Context;
  6. using Quadarax.Foundation.Core.Reflection.Extensions;
  7. namespace BO.ProcessServer
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. new LoggerFactory().Configure(Constants.CS_NLOG_CONFIGURATION_FILE);
  14. var config = new StartupConfiguration("BO ProcessServer", Assembly.GetExecutingAssembly().GetName().Version);
  15. config.ConsoleCopyright = Assembly.GetExecutingAssembly().GetCopyright();
  16. config.AllowInteractive = false;
  17. config.WaitOnKeyInNonInteractiveMode = false;
  18. config.CommandDefinitionAssebmly = new Assembly[] { Assembly.GetEntryAssembly() };
  19. config.DisableDefaultCommands();
  20. config.ShowStatusOnEveryCommand = false;
  21. config.IsConsoleDebug = false;
  22. var console = new Engine(config, new DefualtEngineContext(), args);
  23. console.Start();
  24. }
  25. }
  26. }