C# Class _3PA.MainFeatures.Pro.ProCompilation

Class used for the mass compiler
Afficher le fichier Open project: jcaillon/3P Class Usage Examples

Méthodes publiques

Свойство Type Description
DeploymentDone bool

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CompilationFailedOnMaxUser() public méthode

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
Résultat bool

CompileFiles() public méthode

Compiles the list of files given
public CompileFiles ( HashSet filesToCompile ) : bool
filesToCompile HashSet
Résultat bool

FormatCompilationResult() public static méthode

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
Résultat string

GetElapsedTime() public méthode

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

GetOverallProgression() public méthode

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

KillProcesses() public méthode

public KillProcesses ( ) : void
Résultat void

Property Details

DeploymentDone public_oe property

public bool DeploymentDone
Résultat bool