Exemplo n.º 1
0
        /// <summary>
        /// Load applicatioin settings.
        /// </summary>
        protected CleanupSettings Load(JobExecutionContext context)
        {
            try
            {
                var settings = new CleanupSettings(context);
                m_store  = new ConfigStore(settings.ConnectionString, settings.QueryTimeout);
                m_logger = Log.For(this);

                return(settings);
            }
            catch (Exception e)
            {
                WriteToEventLog(e);
                var je = new JobExecutionException(e);
                je.UnscheduleAllTriggers = true;
                throw je;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Load applicatioin settings.
        /// </summary>
        protected CleanupSettings Load(JobExecutionContext context)
        {
            try
            {
                var settings = new CleanupSettings(context);
                m_store = new ConfigStore(settings.ConnectionString, settings.QueryTimeout);
                m_logger = Log.For(this);

                return settings;
            }
            catch (Exception e)
            {
                WriteToEventLog(e);
                var je = new JobExecutionException(e);
                je.UnscheduleAllTriggers = true;
                throw je;
            }
        }