/// <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; } }
/// <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; } }