Program.cs 839 B

1234567891011121314151617181920
  1. // See https://aka.ms/new-console-template for more information
  2. using System.Reflection;
  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. var config = new StartupConfiguration("QMonitor Console", Assembly.GetExecutingAssembly().GetName().Version);
  8. config.ConsoleCopyright = Assembly.GetExecutingAssembly().GetCopyright();
  9. config.AllowInteractive = false;
  10. config.WaitOnKeyInNonInteractiveMode = false;
  11. config.CommandDefinitionAssebmly = new[]{Assembly.GetEntryAssembly()};
  12. config.DisableDefaultCommands();
  13. config.ShowStatusOnEveryCommand = false;
  14. config.IsConsoleDebug = false;
  15. var console = new Engine(config, new DefualtEngineContext(), args);
  16. console.Start();