static void Main(string[] args) { try { //new ShipEmail().Execute(new NotificationSchedulerVO()); // time ->> queue -->> var sm = new SchedulerManager(); var resultQueue = sm.GetValidTaskQueue(); sm.ExecuteTaskQueue(resultQueue); MailHelper.SnedSystemIssueEmail(); //if (resultQueue.Where(x => x.Cycle != "any").ToList().Count > 0) // MailHelper.SnedSystemIssueEmail(); } catch (Exception e) { log.Error(e); } }