C# Class _3PA.MainFeatures.Pro.ProCompilation

Class used for the mass compiler
Mostra file Open project: jcaillon/3P Class Usage Examples

Public Properties

Property Type Description
DeploymentDone bool

Public Methods

Method Description
CancelCompilation ( ) : void

This method "cancel" the compilation by killing the associated processes

CompilationFailedOnMaxUser ( ) : bool

Returns true if at least one process failed because of a failed database connection and one of the error was the error number 748 (lack of ressources) this error is caused by too much connection on the same database (too much processes started!)

CompileFiles ( HashSet filesToCompile ) : bool

Compiles the list of files given

FormatCompilationResult ( string sourceFilePath, List listErrorFiles, List listDeployedFiles ) : string

Allows to format a small text to explain the errors found in a file and the generated files...

GetElapsedTime ( ) : string

Get the time elapsed since the beggining of the compilation in a human readable format

GetOverallProgression ( ) : float

Use this method to get the overall progression of the compilation (from 0 to 100)

KillProcesses ( ) : void

Private Methods

Method Description
EndOfCompilation ( ProExecution obj ) : void

This method is executed when the overall compilation is over and allows to do more treatments

OnExecutionEnd ( ProExecution lastExecution ) : void

Called when a process has finished

OnExecutionFailed ( ProExecution obj ) : void

Called when a process has finished UNsuccessfully

OnExecutionOk ( ProExecution obj ) : void

Called when a process has finished successfully

Method Details

CancelCompilation() public method

This method "cancel" the compilation by killing the associated processes
public CancelCompilation ( ) : void
return void

CompilationFailedOnMaxUser() public method

Returns true if at least one process failed because of a failed database connection and one of the error was the error number 748 (lack of ressources) this error is caused by too much connection on the same database (too much processes started!)
public CompilationFailedOnMaxUser ( ) : bool
return bool

CompileFiles() public method

Compiles the list of files given
public CompileFiles ( HashSet filesToCompile ) : bool
filesToCompile HashSet
return bool

FormatCompilationResult() public static method

Allows to format a small text to explain the errors found in a file and the generated files...
public static FormatCompilationResult ( string sourceFilePath, List listErrorFiles, List listDeployedFiles ) : string
sourceFilePath string
listErrorFiles List
listDeployedFiles List
return string

GetElapsedTime() public method

Get the time elapsed since the beggining of the compilation in a human readable format
public GetElapsedTime ( ) : string
return string

GetOverallProgression() public method

Use this method to get the overall progression of the compilation (from 0 to 100)
public GetOverallProgression ( ) : float
return float

KillProcesses() public method

public KillProcesses ( ) : void
return void

Property Details

DeploymentDone public_oe property

public bool DeploymentDone
return bool