Using (var docStream = properties.GetDocumentStream(doc)) If (connectorSettings.DebugMode) properties.AddInfoMessage(_actionName + " " + "Destination directory: " + directory + ".") If (connectorSettings.DebugMode) properties.AddInfoMessage(_actionName + " Directory Creation Success") If (connectorSettings.DebugMode) properties.AddInfoMessage(_actionName + " " + "Directory Creation Start: " + directory + ".") If (createDirectory & !sftpClient.Exists(directory)) If (connectorSettings.DebugMode) properties.AddInfoMessage(_actionName + " " + "Connected to " + host + ".") Using (var sftpClient = new SftpClient(host, port, username, password)) If (connectorSettings.DebugMode) properties.AddInfoMessage(_actionName + " " + "File Transfer via SFTP Protocol" + ".") I'm trying to upload generated word documents to a SFTP server using Renci.SshNet: if (protocol = "SFTP")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |