C# Class FdoToolbox.Core.AppFramework.ConsoleCommand

Base console command class. All console commands derive from this class.
Inheritance: IConsoleCommand
Afficher le fichier Open project: jumpinjackie/fdotoolbox

Méthodes publiques

Méthode Description
Abort ( ) : void
Execute ( ) : int

Executes the command

Méthodes protégées

Méthode Description
CreateConnection ( string provider, string connStr ) : IConnection

Creates a new FDO connection

RepeatString ( string str, int iterations ) : string

Repeats a string for a given number of iterations

Write ( string str ) : void

Writes a line to the application console

WriteError ( string format ) : void

Writes an error to the application console

WriteException ( Exception ex ) : void

Writes an exception to the application console

WriteLine ( string str ) : void

Writes a newline-terminated line to the application console

WriteWarning ( string str ) : void

Writes a warning message to the application console

Method Details

Abort() public méthode

public Abort ( ) : void
Résultat void

CreateConnection() protected static méthode

Creates a new FDO connection
protected static CreateConnection ( string provider, string connStr ) : IConnection
provider string
connStr string
Résultat IConnection

Execute() public abstract méthode

Executes the command
public abstract Execute ( ) : int
Résultat int

RepeatString() protected static méthode

Repeats a string for a given number of iterations
protected static RepeatString ( string str, int iterations ) : string
str string
iterations int
Résultat string

Write() protected méthode

Writes a line to the application console
protected Write ( string str ) : void
str string
Résultat void

WriteError() protected méthode

Writes an error to the application console
protected WriteError ( string format ) : void
format string
Résultat void

WriteException() protected méthode

Writes an exception to the application console
protected WriteException ( Exception ex ) : void
ex System.Exception
Résultat void

WriteLine() protected méthode

Writes a newline-terminated line to the application console
protected WriteLine ( string str ) : void
str string
Résultat void

WriteWarning() protected méthode

Writes a warning message to the application console
protected WriteWarning ( string str ) : void
str string The message
Résultat void