public NotifyService(string name, MesLog mesLog)
            : base(name, mesLog)
        {
            try
            {
                //
                _PM_ALT_MESSAGEBO = ObjectContainer.BuildUp <IPM_ALT_MESSAGEBO>();

                _CV_PM_WECHAT_NOTIBO = ObjectContainer.BuildUp <Siemens.Simatic.Wechat.BusinessLogic.ICV_PM_WECHAT_NOTIBO>();
                _PM_WECHAT_NOTIBO    = ObjectContainer.BuildUp <IPM_WECHAT_NOTIBO>();
            }
            catch (Exception e)
            {
                // need EmailService instance to send email only.
            }

            this.SenderUser     = ConfigurationManager.AppSettings["SenderUser"];
            this.SenderPassword = ConfigurationManager.AppSettings["SenderPwd"];
            this.SenderName     = ConfigurationManager.AppSettings["SenderAccount"];
            this.SmtpServer     = ConfigurationManager.AppSettings["SmtpServer"];
            this.SmtpPort       = ConfigurationManager.AppSettings["SmtpPort"];
        }
Пример #2
0
 public AlertService(string name)
     : base(name)
 {
     _PM_ALT_MESSAGEBO = ObjectContainer.BuildUp <IPM_ALT_MESSAGEBO>();
 }