C# Class FdoToolbox.Core.AppFramework.ConsoleCommand

Base console command class. All console commands derive from this class.
Inheritance: IConsoleCommand
Mostra file Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
Abort ( ) : void
Execute ( ) : int

Executes the command

Protected Methods

Method 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 method

public Abort ( ) : void
return void

CreateConnection() protected static method

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

Execute() public abstract method

Executes the command
public abstract Execute ( ) : int
return int

RepeatString() protected static method

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

Write() protected method

Writes a line to the application console
protected Write ( string str ) : void
str string
return void

WriteError() protected method

Writes an error to the application console
protected WriteError ( string format ) : void
format string
return void

WriteException() protected method

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

WriteLine() protected method

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

WriteWarning() protected method

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