Program.cs 1.0 KB

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