示例#1
0
        public FtpLib(Tasks.TaskBase callingTask, Util.BuildProgressInformation buildProgressInformation)
        {
            CallingTask = callingTask;
            bpi = buildProgressInformation;

            this.FtpServer = new EnterpriseDT.Net.Ftp.FTPConnection();

            this.FtpServer.ReplyReceived += HandleMessages;

            this.FtpServer.CommandSent += HandleMessages;

            this.FtpServer.Downloaded += new EnterpriseDT.Net.Ftp.FTPFileTransferEventHandler(FtpServer_Downloaded);

            this.FtpServer.Uploaded += new EnterpriseDT.Net.Ftp.FTPFileTransferEventHandler(FtpServer_Uploaded);
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FtpLib" /> class.
        /// </summary>
        /// <param name="callingTask">The calling task.</param>
        /// <param name="buildProgressInformation">The build progress information.</param>
        /// <remarks></remarks>
        public FtpLib(Tasks.TaskBase callingTask, BuildProgressInformation buildProgressInformation)
        {
            this.callingTask = callingTask;
            bpi = buildProgressInformation;

            this.ftpServer = new EnterpriseDT.Net.Ftp.FTPConnection();

            this.ftpServer.ReplyReceived += HandleMessages;

            this.ftpServer.CommandSent += HandleMessages;

            this.ftpServer.Downloaded += new EnterpriseDT.Net.Ftp.FTPFileTransferEventHandler(FtpServer_Downloaded);

            this.ftpServer.Uploaded += new EnterpriseDT.Net.Ftp.FTPFileTransferEventHandler(FtpServer_Uploaded);
        }