Exemplo n.º 1
0
        public void ResetEditionStartDateDifferences(string key)
        {
            if (key == WebConfigHelper.TaskSchedulerSecretKey)
            {
                try
                {
                    TaskServices.ResetEditionStartDateDifferences();

                    var log = CreateInternalLog("One-time task ResetEditionStartDateDifferences completed.", AutoIntegrationUser);
                    ExternalLogHelper.Log(log, LoggingEventType.Information);
                }
                catch (Exception exc)
                {
                    var message = "One-time task ResetEditionStartDateDifferences failed! " + exc.GetFullMessage();
                    ExternalLogHelper.Log(message, LoggingEventType.Error);
                }
            }
        }