static void Main(String[] args) { String keyFile = "Hermes-232edbf43f3e.p12"; string serviceEmail = "*****@*****.**"; inbox = new GmailBox(keyFile, serviceEmail); string address = ConfigurationManager.ConnectionStrings["Hermes.Properties.Settings.ProudSourceDBConnectionString"].ConnectionString; database = new EmailDatabaseWrapper(address); try { while (true) { ///TODO Implement these as asynchronous tasks testingRun(); receiveRun(); processRun(); } } catch (StopProgramException e) { Console.WriteLine("Received kill signal.. Shutting down"); } catch (Exception e) { Console.WriteLine("Caught exception of type: " + e.GetType()); Console.WriteLine(e.ToString()); } Console.Read(); }
static void Main(String[] args) { keyFile = "Hermes-232edbf43f3e.p12"; GmailBox inbox = new GmailBox(keyFile); Console.Read(); }