public void RunTask()
 {
     try
     {
         m_logger.EnteredParallelTask(this.Title, null);
         this.ExecuteTaskFunction(m_context);
         m_logger.LogExit("Ended successfully", "");
     }
     catch (Exception ex)
     {
         m_logger.LogExit("Ended with fail", ex.ToString());
     }
 }
Exemple #2
0
        public static bool ParseFiles(bool force)
        {
            if (force || CheckIfFileParsingNeeded())
            {
                ILoggerScope logger = null;
                try
                {
                    logger = m_rootLogger.LogEntering("StepBro.Main", "Starting file parsing");
                    foreach (var f in m_loadedFilesManager.ListFiles <ScriptFile>())
                    {
                        f.ResetBeforeParsing(preserveUpdateableElements: force == false);
                    }

                    m_lastParsingErrorCount = FileBuilder.ParseFiles(m_serviceManagerAdmin.Manager, logger);
                }
                finally
                {
                    logger.LogExit("StepBro.Main", $"Ended file parsing. {m_lastParsingErrorCount} errors.");
                }
                return(m_lastParsingErrorCount == 0);
            }
            else
            {
                return(true);    // Success (at least no failures) ...
            }
        }