コード例 #1
0
        /// <summary>
        /// bootstrap shell for CLI context (interactive shell)
        /// </summary>
        /// <param name="args">shell arguments</param>
        /// <returns>shell exit code</returns>
        public int RunShellServiceHost(
            string[] args
            )
        {
            _clp.SetArgs(args);

            var shellBootstrap = GetShellBootstrap(args);

            // invoke a shell initializer associated to the clp

            shellBootstrap.Run();

            // starts an interactive shell

            return(_clr.ReadCommandLine());
        }