C# Класс Microsoft.Scripting.Hosting.Shell.ConsoleHost

Core functionality to implement an interactive console. This should be derived for concrete implementations
Показать файл Открыть проект

Открытые методы

Метод Описание
PrintLanguageHelp ( StringBuilder output ) : void
Terminate ( int exitCode ) : void

Request (from another thread) the console REPL loop to terminate

Защищенные методы

Метод Описание
ConsoleHost ( ) : System
CreateCommandLine ( ) : CommandLine
CreateConsole ( ScriptEngine engine, CommandLine commandLine, ConsoleOptions options ) : IConsole
CreateLanguageSetup ( ) : LanguageSetup
CreateOptionsParser ( ) : OptionsParser
CreateRuntimeSetup ( ) : ScriptRuntimeSetup
ExecuteInternal ( ) : void
ParseHostOptions ( string args ) : void
ParseOptions ( string args, ScriptRuntimeSetup runtimeSetup, LanguageSetup languageSetup ) : ConsoleOptions
PrintException ( TextWriter output, Exception e ) : void
PrintHelp ( ) : void
PrintVersion ( ) : void
ReportInvalidOption ( InvalidOptionException e ) : void
UnhandledException ( ScriptEngine engine, Exception e ) : void

Приватные методы

Метод Описание
CreateSuperConsole ( CommandLine commandLine, bool isColorful ) : IConsole
Execute ( ) : void
GetHelp ( ) : string
GetLanguageProvider ( ScriptRuntimeSetup setup ) : string
GetRuntime ( ) : string
InsertSearchPaths ( object>.IDictionary options, ICollection paths ) : void
PrintUsage ( ) : void
Run ( string args ) : int
RunCommandLine ( ) : int
RunFile ( ) : int
SetEnvironment ( ) : void

Описание методов

ConsoleHost() защищенный Метод

protected ConsoleHost ( ) : System
Результат System

CreateCommandLine() защищенный Метод

protected CreateCommandLine ( ) : CommandLine
Результат CommandLine

CreateConsole() защищенный Метод

protected CreateConsole ( ScriptEngine engine, CommandLine commandLine, ConsoleOptions options ) : IConsole
engine ScriptEngine
commandLine CommandLine
options ConsoleOptions
Результат IConsole

CreateLanguageSetup() защищенный Метод

protected CreateLanguageSetup ( ) : LanguageSetup
Результат LanguageSetup

CreateOptionsParser() защищенный Метод

protected CreateOptionsParser ( ) : OptionsParser
Результат OptionsParser

CreateRuntimeSetup() защищенный Метод

protected CreateRuntimeSetup ( ) : ScriptRuntimeSetup
Результат ScriptRuntimeSetup

ExecuteInternal() защищенный Метод

protected ExecuteInternal ( ) : void
Результат void

ParseHostOptions() защищенный Метод

protected ParseHostOptions ( string args ) : void
args string
Результат void

ParseOptions() защищенный Метод

protected ParseOptions ( string args, ScriptRuntimeSetup runtimeSetup, LanguageSetup languageSetup ) : ConsoleOptions
args string
runtimeSetup ScriptRuntimeSetup
languageSetup LanguageSetup
Результат ConsoleOptions

PrintException() защищенный статический Метод

protected static PrintException ( TextWriter output, Exception e ) : void
output System.IO.TextWriter
e System.Exception
Результат void

PrintHelp() защищенный Метод

protected PrintHelp ( ) : void
Результат void

PrintLanguageHelp() публичный Метод

public PrintLanguageHelp ( StringBuilder output ) : void
output StringBuilder
Результат void

PrintVersion() защищенный Метод

protected PrintVersion ( ) : void
Результат void

ReportInvalidOption() защищенный Метод

protected ReportInvalidOption ( InvalidOptionException e ) : void
e InvalidOptionException
Результат void

Terminate() публичный Метод

Request (from another thread) the console REPL loop to terminate
public Terminate ( int exitCode ) : void
exitCode int The caller can specify the exitCode corresponding to the event triggering /// the termination. This will be returned from CommandLine.Run
Результат void

UnhandledException() защищенный Метод

protected UnhandledException ( ScriptEngine engine, Exception e ) : void
engine ScriptEngine
e System.Exception
Результат void