Example #1
0
 public void Initialize()
 {
     if (MonitorAllConfig.Instance().NotifyConfig != null)
     {
         _notifyConfig = (EMailNotifyConfig)MonitorAllConfig.Instance().NotifyConfig.Clone();
     }
 }
        public object Clone()
        {
            EMailNotifyConfig temp = new EMailNotifyConfig();

            temp._enableRecoverNotify = this._enableRecoverNotify;
            temp._sendTimer           = this._sendTimer;
            temp._sendMailWeek        = this._sendMailWeek;
            temp._sendMailModel       = this._sendMailModel;
            temp._timeEMailNotify     = this._timeEMailNotify;
            temp._emailAddr           = this._emailAddr;
            temp._emailSendSource     = this._emailSendSource;
            temp._enableJournal       = this._enableJournal;
            temp._enableNotify        = this._enableNotify;
            temp._password            = this._password;
            temp._port        = this._port;
            temp._smtpServer  = this._smtpServer;
            temp._logSaveDays = this._logSaveDays;
            temp._bEnableSsl  = this._bEnableSsl;
            for (int i = 0; i < this._receiveInfoList.Count; i++)
            {
                temp._receiveInfoList.Add((ReceiverInfo)_receiveInfoList[i].Clone());
            }
            return(temp);
        }
 public object Clone()
 {
     EMailNotifyConfig temp = new EMailNotifyConfig();
     temp._enableRecoverNotify = this._enableRecoverNotify;
     temp._sendTimer = this._sendTimer;
     temp._sendMailWeek = this._sendMailWeek;
     temp._sendMailModel = this._sendMailModel;
     temp._timeEMailNotify = this._timeEMailNotify;
     temp._emailAddr = this._emailAddr;
     temp._emailSendSource = this._emailSendSource;
     temp._enableJournal = this._enableJournal;
     temp._enableNotify = this._enableNotify;
     temp._password = this._password;
     temp._port = this._port;
     temp._smtpServer = this._smtpServer;
     temp._logSaveDays = this._logSaveDays;
     temp._bEnableSsl = this._bEnableSsl;
     for (int i = 0; i < this._receiveInfoList.Count; i++)
     {
         temp._receiveInfoList.Add((ReceiverInfo)_receiveInfoList[i].Clone());
     }
     return temp;
 }