public void ProcessEmails() { TaskExceptionList taskExceptionList = new TaskExceptionList(); Console.WriteLine("{0} MyWorkbench Emails - Emails started Successfuly!", DateTime.Now.ToString()); using (Emails emails = new Emails(Config.ConnectionString)) { taskExceptionList = emails.Process(); } if (taskExceptionList.TaskExceptions.Count >= 1) { throw new Exception(taskExceptionList.ToString()); } }
public void ProcessGeoCode() { TaskExceptionList taskExceptionList = new TaskExceptionList(); Console.WriteLine("{0} MyWorkbench Geocode - Geocode started Successfuly!", DateTime.Now.ToString()); using (GeoCode geocode = new GeoCode(Config.ConnectionString, Config.GoogleApiKey)) { taskExceptionList = geocode.Process(); } if (taskExceptionList.TaskExceptions.Count >= 1) { throw new Exception(taskExceptionList.ToString()); } }
public void ProcessRecurring() { TaskExceptionList taskExceptionList = new TaskExceptionList(); Console.WriteLine("{0} MyWorkbench Recurring - Recurring started Successfuly!", DateTime.Now.ToString()); using (Recurring recurring = new Recurring(Config.ConnectionString)) { taskExceptionList = recurring.Process(); } if (taskExceptionList.TaskExceptions.Count >= 1) { throw new Exception(taskExceptionList.ToString()); } }
public void ProcessEmailToTicket() { TaskExceptionList taskExceptionList = new TaskExceptionList(); Console.WriteLine("{0} MyWorkbench EmailToTicket - EmailToTicket started Successfuly!", DateTime.Now.ToString()); using (EmailToTicket emailToTicket = new EmailToTicket(Config.ConnectionString, Config.MailServer, Config.MailPort, Config.MailSSL, Config.MailUsername, Config.MailPassword)) { taskExceptionList = emailToTicket.Process(); } if (taskExceptionList.TaskExceptions.Count >= 1) { throw new Exception(taskExceptionList.ToString()); } }
public void ProcessMessages() { TaskExceptionList taskExceptionList = new TaskExceptionList(); Console.WriteLine("{0} MyWorkbench Messages - Messages started Successfuly!", DateTime.Now.ToString()); using (Messages messages = new Messages(Config.ConnectionString)) { taskExceptionList = messages.Process(); } if (taskExceptionList.TaskExceptions.Count >= 1) { throw new Exception(taskExceptionList.ToString()); } }