C# Class msos.CommandExecutionContext

Inheritance: IDisposable
Afficher le fichier Open project: goldshtn/msos Class Usage Examples

Méthodes publiques

Méthode Description
CommandExecutionContext ( ) : System
CreateTemporaryDbgEngTarget ( ) : Microsoft.Diagnostics.Runtime.DataTarget

Creates a temporary DbgEng DataTarget. It is used for a single command's execution, such as !lm or !mk, and disposed immediately thereafter. If there is already a persistent DbgEng DataTarget, i.e. the debugger is currently in native DbgEng "mode", this method fails.

Dispose ( ) : void
EnterDbgEngNativeMode ( ) : void

Creates a persistent DbgEng DataTarget that can be used to execute multiple commands (remembers state). While this DataTarget is in place, msos is placed in native DbgEng "mode", and accepts only DbgEng commands.

ExecuteCommand ( string inputCommand ) : void
ExecuteOneCommand ( string command ) : void
ExitDbgEngNativeMode ( ) : void
GetTypeByMetadataToken ( string moduleName, int mdTypeDefToken ) : ClrType
RemoveTemporaryAliases ( ) : void
Write ( string format ) : void
WriteError ( string value ) : void
WriteErrorLine ( string format ) : void
WriteInfo ( string value ) : void
WriteInfoLine ( string format ) : void
WriteLine ( ) : void
WriteLine ( string format ) : void
WriteLink ( string text, string command ) : void
WriteWarning ( string value ) : void
WriteWarningLine ( string format ) : void

Private Methods

Méthode Description
AddTemporaryAlias ( string command ) : string
CreateDbgEngDataTargetImpl ( ) : Microsoft.Diagnostics.Runtime.DataTarget
GetAllCommandTypes ( ) : System.Type[]
InitParserIfNecessary ( ) : void
IsCommandIsSupportedForThisTarget ( Type type ) : bool

Method Details

CommandExecutionContext() public méthode

public CommandExecutionContext ( ) : System
Résultat System

CreateTemporaryDbgEngTarget() public méthode

Creates a temporary DbgEng DataTarget. It is used for a single command's execution, such as !lm or !mk, and disposed immediately thereafter. If there is already a persistent DbgEng DataTarget, i.e. the debugger is currently in native DbgEng "mode", this method fails.
public CreateTemporaryDbgEngTarget ( ) : Microsoft.Diagnostics.Runtime.DataTarget
Résultat Microsoft.Diagnostics.Runtime.DataTarget

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnterDbgEngNativeMode() public méthode

Creates a persistent DbgEng DataTarget that can be used to execute multiple commands (remembers state). While this DataTarget is in place, msos is placed in native DbgEng "mode", and accepts only DbgEng commands.
public EnterDbgEngNativeMode ( ) : void
Résultat void

ExecuteCommand() public méthode

public ExecuteCommand ( string inputCommand ) : void
inputCommand string
Résultat void

ExecuteOneCommand() public méthode

public ExecuteOneCommand ( string command ) : void
command string
Résultat void

ExitDbgEngNativeMode() public méthode

public ExitDbgEngNativeMode ( ) : void
Résultat void

GetTypeByMetadataToken() public méthode

public GetTypeByMetadataToken ( string moduleName, int mdTypeDefToken ) : ClrType
moduleName string
mdTypeDefToken int
Résultat ClrType

RemoveTemporaryAliases() public méthode

public RemoveTemporaryAliases ( ) : void
Résultat void

Write() public méthode

public Write ( string format ) : void
format string
Résultat void

WriteError() public méthode

public WriteError ( string value ) : void
value string
Résultat void

WriteErrorLine() public méthode

public WriteErrorLine ( string format ) : void
format string
Résultat void

WriteInfo() public méthode

public WriteInfo ( string value ) : void
value string
Résultat void

WriteInfoLine() public méthode

public WriteInfoLine ( string format ) : void
format string
Résultat void

WriteLine() public méthode

public WriteLine ( ) : void
Résultat void

WriteLine() public méthode

public WriteLine ( string format ) : void
format string
Résultat void

WriteLink() public méthode

public WriteLink ( string text, string command ) : void
text string
command string
Résultat void

WriteWarning() public méthode

public WriteWarning ( string value ) : void
value string
Résultat void

WriteWarningLine() public méthode

public WriteWarningLine ( string format ) : void
format string
Résultat void