Beispiel #1
0
        public void ProcessInboxBusinessLayer()
        {
            //checkMessageSend();
            //XmlDocument mailConfig = new XmlDocument();
            //mailConfig.Load("./mailConfig.xml");
            ProcessInbox inbox = new ProcessInbox("http://localhost:8000/expense/claim");

            inbox.ProcessMailForExpenses("claim");
        }
        static void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            string       smtpConfig       = System.Configuration.ConfigurationManager.AppSettings["mailSetupPath"];
            string       httpRestEndPoint = System.Configuration.ConfigurationManager.AppSettings["restEndPoint"];
            ProcessInbox inbox            = new ProcessInbox(httpRestEndPoint);

            inbox.ProcessMailForExpenses("claim");
            try
            {
                inbox.Dispose();
            }
            catch (Exception) { }//fail silently
        }