예제 #1
0
        private string getOutputFolder(string country, string docType, MailItem objMail)
        {
            string path = Path.Combine(Path.Combine(Path.Combine(@"C:\Users\Public\pdfWork", country), docType.Replace("/", "-")), objMail.GetHashCode().ToString() + "_" + DateTime.Now.ToString(this.dateFormat));

            if (Directory.Exists(path))
            {
                path = path + "_" + DateTime.Now.ToString(this.dateFormat);
            }
            return(path);
        }
예제 #2
0
 public OutlookMailItem(MailItem mailItem)
 {
     Debug.WriteLine($"Outlookmail ctor {mailItem.GetHashCode()}");
     logger.Message("Outlookmail ctor:", mailItem.GetHashCode());
     _mailItem = mailItem;
 }