コード例 #1
0
        /// <summary>
        /// Clear error for restart
        /// </summary>
        // -------------------------------------------------------------------------------------------------------
        protected void clearErrorForRestart()
        {
            // m_currentYoungestError
            {
                this.m_currentError = null;
            }

            // m_iesListBefore
            {
                foreach (var val in this.m_iesListBefore)
                {
                    if (!string.IsNullOrEmpty(val.errorMessage))
                    {
                        val.currentWorkingState = StartupContents.WorkingState.NotYet;
                    }

                    val.errorMessage = "";
                }
            }

            // m_iesListAfter
            {
                foreach (var val in this.m_iesListAfter)
                {
                    if (!string.IsNullOrEmpty(val.errorMessage))
                    {
                        val.currentWorkingState = StartupContents.WorkingState.NotYet;
                    }

                    val.errorMessage = "";
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Update error
        /// </summary>
        /// <param name="startupContents">error StartupContents</param>
        // -------------------------------------------------------------------------------------------------------
        protected void updateError(StartupContents startupContents)
        {
            if (startupContents != this.m_manifestInfo.dummyStartup && this.m_ignoreErrorExceptManifest)
            {
                return;
            }

            // ----------

            if (startupContents != null)
            {
                this.m_currentError = startupContents;
            }
        }
コード例 #3
0
        /// <summary>
        /// Update error
        /// </summary>
        /// <param name="startupContents">error StartupContents</param>
        // -------------------------------------------------------------------------------------------------------
        protected void updateError(StartupContents startupContents)
        {
            if (this.m_ignoreError)
            {
                return;
            }

            // ----------

            if (startupContents != null)
            {
                this.m_currentError = startupContents;
            }
        }
コード例 #4
0
        /// <summary>
        /// Clear error for restart
        /// </summary>
        // -------------------------------------------------------------------------------------------------------
        protected void clearErrorForRestart()
        {
            // m_currentError
            {
                this.m_currentError = null;
            }

            // m_manifestInfo
            {
                this.m_manifestInfo.clear(false);
            }

            // m_absList
            {
                foreach (var absGroup in this.m_absList)
                {
                    foreach (var abs in absGroup.Value.absList)
                    {
                        if (!string.IsNullOrEmpty(abs.errorMessage))
                        {
                            abs.currentWorkingState = StartupContents.WorkingState.NotYet;
                        }

                        abs.errorMessage = "";
                    }
                }
            }

            // m_dependencies
            {
                foreach (var absGroup in this.m_dependencies)
                {
                    foreach (var abs in absGroup.Value.absList)
                    {
                        if (!string.IsNullOrEmpty(abs.errorMessage))
                        {
                            abs.currentWorkingState = StartupContents.WorkingState.NotYet;
                        }

                        abs.errorMessage = "";
                    }
                }
            }
        }