コード例 #1
0
ファイル: FTPBackHandle.cs プロジェクト: ProgrameLife/Stealth
        /// <summary>
        /// handle ftp
        /// </summary>
        /// <param name="keyName">key name</param>
        /// <returns></returns>
        public bool Handle(string keyName)
        {
            var content    = _buildData.BuildData <string>(keyName);
            var ftpsetting = _sftpProvider.GetSFTPSetting(keyName);

            return(FTPTransfer(content, ftpsetting));
        }
コード例 #2
0
        /// <summary>
        /// email handle method
        /// </summary>
        /// <param name="keyName">key name</param>
        /// <returns></returns>
        public bool Handle(string keyName)
        {
            var content      = _buildData.BuildData <string>(keyName);
            var emailsetting = _emailProvider.GetEmailSetting(keyName);

            return(SendEmail(content, emailsetting));
        }
コード例 #3
0
        /// <summary>
        /// email handle method
        /// </summary>
        /// <param name="keyName">key name</param>
        /// <returns></returns>
        public bool Handle(string keyName)
        {
            var content     = _buildData.BuildData <string>(keyName);
            var fileSetting = _fileProvider.GetFileSetting(keyName);

            return(SendEmail(content, fileSetting));
        }