Пример #1
0
        protected void cmdSave_Click(object sender, EventArgs e)
        {
            //Get current page URL
            var url = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.RawUrl;

            GoogleAmpConverter.ConvertUrl(url, PortalSettings.Current);
        }
Пример #2
0
        public override void DoWork()
        {
            try
            {
                GoogleAmpConverter.BuildAmps();

                // report success to the scheduler framework
                ScheduleHistoryItem.Succeeded = true;
            }
            catch (Exception exc)
            {
                ScheduleHistoryItem.Succeeded = false;
                ScheduleHistoryItem.AddLogNote("EXCEPTION: " + exc.ToString());
                Errored(ref exc);
                Exceptions.LogException(exc);
            }
        }