public void StartConsole()
        {
            commandLineInterpreter = new CommandLineInterpreter()
            {
                OnCommand = OnConsoleCommand
            };

            ShowEnviromentValues();
            ShowUsage();

            BConsole.Enabled = true;
            commandLineInterpreter.Start(cts);
        }
        public void Start(int acceptWorkers, CancellationTokenSource cts)
        {
            this.cts = cts;

            // catalog provider
            // do not load for test
            //CatalogProvider.Load();

            // start tcp server
            Server.Start(EndPoint.Host, EndPoint.Port, acceptWorkers);

            ShowEnv();
            ShowUsage();

            // start command line interpreter
            BConsole.Enabled = true;
            commandLineInterpreter?.Start(cts);
        }