/// <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)); }
/// <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)); }
/// <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)); }