예제 #1
0
        private void RunThumbnail(ISession session, AccountWebsite website, ManagedSecurityContext sec)
        {
            try
            {
                ManagedAccountWebsite m_website = new ManagedAccountWebsite(session, website);

                if (IsDebug)
                {
                    EventLogManager.WriteEntry(string.Format("Thumbnail service updating {0}: {1}, {2}",
                        website.Id, website.Name, website.Url), EventLogEntryType.Information);
                }

                m_website.UpdateThumbnail();
            }
            catch (ThreadAbortException)
            {
                throw;
            }
            catch (Exception)
            {
                website.Modified = DateTime.UtcNow;
                session.Save(website);
            }
        }
예제 #2
0
        private void RunThumbnail(ISession session, AccountWebsite website, ManagedSecurityContext sec)
        {
            try
            {
                ManagedAccountWebsite m_website = new ManagedAccountWebsite(session, website);

                if (IsDebug)
                {
                    EventLogManager.WriteEntry(string.Format("Thumbnail service updating {0}: {1}, {2}",
                                                             website.Id, website.Name, website.Url), EventLogEntryType.Information);
                }

                m_website.UpdateThumbnail();
            }
            catch (ThreadAbortException)
            {
                throw;
            }
            catch (Exception)
            {
                website.Modified = DateTime.UtcNow;
                session.Save(website);
            }
        }