C# Class Mono.Addins.ConsoleProgressStatus

An IProgressStatus class which writes output to the console.
Inheritance: System.MarshalByRefObject, IProgressStatus
Mostra file Open project: slluis/mono-addins Class Usage Examples

Public Methods

Method Description
Cancel ( ) : void
ConsoleProgressStatus ( bool verboseLog ) : System

Initializes a new instance

ConsoleProgressStatus ( int logLevel ) : System

Initializes a new instance

Log ( string msg ) : void
ReportError ( string message, Exception exception ) : void
ReportWarning ( string message ) : void
SetMessage ( string msg ) : void
SetProgress ( double progress ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

ConsoleProgressStatus() public method

Initializes a new instance
public ConsoleProgressStatus ( bool verboseLog ) : System
verboseLog bool /// Set to true to enabled verbose log ///
return System

ConsoleProgressStatus() public method

Initializes a new instance
public ConsoleProgressStatus ( int logLevel ) : System
logLevel int /// Verbosity level. 0: not verbose, 1: normal, >1 extra verbose ///
return System

Log() public method

public Log ( string msg ) : void
msg string
return void

ReportError() public method

public ReportError ( string message, Exception exception ) : void
message string
exception System.Exception
return void

ReportWarning() public method

public ReportWarning ( string message ) : void
message string
return void

SetMessage() public method

public SetMessage ( string msg ) : void
msg string
return void

SetProgress() public method

public SetProgress ( double progress ) : void
progress double
return void