/// <summary> /// Execute the hook procedure for the step 0+ /// </summary> protected void ExecuteDeploymentHook(int currentStep) { if (HasBeenCancelled) { return; } currentStep++; // launch the compile process for the current file (if any) if (File.Exists(Config.FileDeploymentHook)) { try { _hookExecution = new ProExecutionDeploymentHook(_proEnv) { DeploymentStep = currentStep - 1, DeploymentSourcePath = _proEnv.BaseLocalPath, NoBatch = true, NeedDatabaseConnection = true }; _hookExecution.OnExecutionEnd += execution => { DeployStepOneAndMore(currentStep); }; if (!_hookExecution.Start()) { DeployStepOneAndMore(currentStep); } return; } catch (Exception e) { ErrorHandler.ShowErrors(e); } } DeployStepOneAndMore(currentStep); }
/// <summary> /// Execute the hook procedure for the step 0+ /// </summary> protected void ExecuteDeploymentHook(int currentStep) { if (HasBeenCancelled) { return; } currentStep++; // launch the compile process for the current file if (File.Exists(Config.FileDeploymentHook)) { _hookExecution = new ProExecutionDeploymentHook(_proEnv) { DeploymentStep = currentStep - 1, DeploymentSourcePath = _currentProfile.SourceDirectory, NoBatch = true, NeedDatabaseConnection = true }; _hookExecution.OnExecutionEnd += execution => { DeployStepOneAndMore(currentStep); }; if (!_hookExecution.Start()) { DeployStepOneAndMore(currentStep); } } else { DeployStepOneAndMore(currentStep); } }