private void SchedulerCallback(object sender) { try { if (ConfigGlobal_Arsenal.SchedulerActive) { var declaringType = MethodBase.GetCurrentMethod().DeclaringType; if (declaringType != null) { var assembly = declaringType.Assembly.GetName().Name; ScheduleManager.Execute(assembly); } } } catch (Exception ex) { ILog log = new AppLog(); log.Warn(ex, new LogInfo { MethodInstance = MethodBase.GetCurrentMethod(), ThreadInstance = Thread.CurrentThread }); } }
private void SchedulerCallback(object sender) { var declaringType = MethodBase.GetCurrentMethod().DeclaringType; if (declaringType != null) { var assembly = declaringType.Assembly.GetName().Name; ScheduleManager.Execute(assembly); } }
private void SchedulerCallback(object sender) { try { if (ConfigGlobal.SchedulerActive) { ScheduleManager.Execute(); } } catch (Exception ex) { ILog log = new AppLog(); log.Warn(ex, new LogInfo { MethodInstance = MethodBase.GetCurrentMethod(), ThreadInstance = Thread.CurrentThread }); } }