C# Class SSIS.Extensions.SFTP.SFTPConnection

This class is the SFTP interface to ssh net library.
显示文件 Open project: ElanHasson/SSIS-Extensions Class Usage Examples

Private Properties

Property Type Description
CreateFileInfo RemoteFileInfo
Log void
ThrowException void

Public Methods

Method 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

Method 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 method

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

ListFiles() public method

Lists the files.
public ListFiles ( string remotePath ) : List
remotePath string The remote path.
return List

SFTPConnection() public method

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.
return Microsoft.SqlServer.Dts.Runtime

UploadFiles() public method

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