コード例 #1
0
        public void StartConsole()
        {
            commandLineInterpreter = new CommandLineInterpreter()
            {
                OnCommand = OnConsoleCommand
            };

            ShowEnviromentValues();
            ShowUsage();

            BConsole.Enabled = true;
            commandLineInterpreter.Start(cts);
        }
コード例 #2
0
        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);
        }