Exemplo n.º 1
0
    private void CheckApplicationState(SiteDeletionLog delLog)
    {
        if (ApplicationInstanceGUID == SystemHelper.ApplicationInstanceGUID)
        {
            return;
        }

        // Restart of the application
        LogStatusEnum progressLog = delLog.GetProgressState();

        if (progressLog != LogStatusEnum.Finish)
        {
            delLog.LogDeletionState(LogStatusEnum.UnexpectedFinish, ResHelper.GetAPIString("Site_Delete.Applicationrestarted", "<strong>Application has been restarted and the logging of the site delete process has been terminated. Please make sure that the site is deleted. If it is not, please repeate the deletion process.</strong><br />"));
        }
    }