C# Class SSIS.Extensions.SFTP.SFTPConnection

This class is the SFTP interface to ssh net library.
Afficher le fichier Open project: ElanHasson/SSIS-Extensions Class Usage Examples

Private Properties

Свойство Type Description
CreateFileInfo RemoteFileInfo
Log void
ThrowException void

Méthodes publiques

Méthode Description
DownloadFiles ( List fileList ) : void

Downloads the files.

ListFiles ( string remotePath ) : List

Lists the files.

SFTPConnection ( string hostName, string userName, string passWord, int portNumber, bool stopOnFailure, IDTSComponentEvents componentEvents, LogLevel logLevel ) : Microsoft.SqlServer.Dts.Runtime

Initializes a new instance of the SFTPConnection class.

UploadFiles ( List fileList ) : void

Uploads the files.

Private Methods

Méthode Description
CreateFileInfo ( SftpFile sftpFile ) : RemoteFileInfo
Log ( string Message, LogLevel minLogLevel ) : void

Logs the specified message.

ThrowException ( string Message, Exception ex ) : void

Throws the exception.

Method Details

DownloadFiles() public méthode

Downloads the files.
/// Local File Already Exists. ///
public DownloadFiles ( List fileList ) : void
fileList List The file list.
Résultat void

ListFiles() public méthode

Lists the files.
public ListFiles ( string remotePath ) : List
remotePath string The remote path.
Résultat List

SFTPConnection() public méthode

Initializes a new instance of the SFTPConnection class.
public SFTPConnection ( string hostName, string userName, string passWord, int portNumber, bool stopOnFailure, IDTSComponentEvents componentEvents, LogLevel logLevel ) : Microsoft.SqlServer.Dts.Runtime
hostName string Name of the host.
userName string Name of the user.
passWord string The pass word.
portNumber int The port number.
stopOnFailure bool
componentEvents IDTSComponentEvents The component events.
logLevel LogLevel The log level.
Résultat Microsoft.SqlServer.Dts.Runtime

UploadFiles() public méthode

Uploads the files.
Remote File Already Exists.
public UploadFiles ( List fileList ) : void
fileList List The file list.
Résultat void