Пример #1
0
        private void RunThumbnail(ISession session, PlaceWebsite website, ManagedSecurityContext sec)
        {
            try
            {
                ManagedPlaceWebsite m_website = new ManagedPlaceWebsite(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, PlaceWebsite website, ManagedSecurityContext sec)
        {
            try
            {
                ManagedPlaceWebsite m_website = new ManagedPlaceWebsite(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);
            }
        }