Program.cs 964 B

123456789101112131415161718192021222324
  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 consoleVersion = Assembly.GetExecutingAssembly()?.GetName()?.Version;
  8. if (consoleVersion != null)
  9. {
  10. var config = new StartupConfiguration("tss.client.console", consoleVersion)
  11. {
  12. ConsoleCopyright = Assembly.GetExecutingAssembly().GetCopyright(),
  13. AllowInteractive = false,
  14. WaitOnKeyInNonInteractiveMode = false,
  15. CommandDefinitionAssembly = new Assembly[] { Assembly.GetEntryAssembly()! }
  16. };
  17. config.DisableDefaultCommands();
  18. config.ShowStatusOnEveryCommand = false;
  19. config.IsConsoleDebug = false;
  20. var console = new Engine(config, new DefualtEngineContext(), args);
  21. console.Start();
  22. }