示例#1
0
文件: Cleanup.cs 项目: blinds52/nhind
        /// <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;
            }
        }
示例#2
0
文件: Cleanup.cs 项目: DM-TOR/nhin-d
        /// <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;
            }
        }