Exemplo n.º 1
0
        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
                });
            }
        }
Exemplo n.º 2
0
        private void SchedulerCallback(object sender)
        {
            var declaringType = MethodBase.GetCurrentMethod().DeclaringType;

            if (declaringType != null)
            {
                var assembly = declaringType.Assembly.GetName().Name;

                ScheduleManager.Execute(assembly);
            }
        }
Exemplo n.º 3
0
        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
                });
            }
        }