예제 #1
0
        protected override void Initialize()
        {
            ConfigObj = Config as DataStreamRicCreationWithDseConfig;
            TaskResultList.Add(new TaskResultEntry("LOG File", "LOG File", Logger.FilePath));

            accountName = ConfigObj.AccountName.Trim();
            EmailAccountInfo emailAccount = EmailAccountManager.SelectEmailAccountByAccountName(ConfigObj.AccountName.Trim());

            if (emailAccount != null)
            {
                accountName    = emailAccount.AccountName;
                email_password = emailAccount.Password;
                domain         = emailAccount.Domain;
            }
            listMailTo        = ConfigObj.MailTo;
            listMailSignature = ConfigObj.MailSignature;

            service = MSAD.Common.OfficeUtility.EWSUtility.CreateService(new System.Net.NetworkCredential(accountName, email_password, domain), new Uri(@"https://apac.mail.erf.thomson.com/EWS/Exchange.asmx"));

            InitializeFileDirectory();

            string msg = "Initialize...OK!";

            Logger.Log(msg);
        }
예제 #2
0
        protected override void Initialize()
        {
            ConfigObj = Config as DataStreamRicCreationWithDseConfig;
            TaskResultList.Add(new TaskResultEntry("LOG File", "LOG File", Logger.FilePath));

            InitializeFileDirectory();

            string msg = "Initialize...OK!";

            Logger.Log(msg);
        }