C# Класс _3PA.MainFeatures.Pro.ProCompilation

Class used for the mass compiler
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DeploymentDone bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CancelCompilation() публичный Метод

This method "cancel" the compilation by killing the associated processes
public CancelCompilation ( ) : void
Результат void

CompilationFailedOnMaxUser() публичный Метод

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
Результат bool

CompileFiles() публичный Метод

Compiles the list of files given
public CompileFiles ( HashSet filesToCompile ) : bool
filesToCompile HashSet
Результат bool

FormatCompilationResult() публичный статический Метод

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
Результат string

GetElapsedTime() публичный Метод

Get the time elapsed since the beggining of the compilation in a human readable format
public GetElapsedTime ( ) : string
Результат string

GetOverallProgression() публичный Метод

Use this method to get the overall progression of the compilation (from 0 to 100)
public GetOverallProgression ( ) : float
Результат float

KillProcesses() публичный Метод

public KillProcesses ( ) : void
Результат void

Описание свойств

DeploymentDone публичное свойство

public bool DeploymentDone
Результат bool