Beispiel #1
0
        internal DokanFtpClient(FTPSClient fTPSClient, IFtpOptions ftpOptions)
        {
            this.fTPSClient = fTPSClient;
            this.ftpOptions = ftpOptions;

            const string ROOT = "\\";
            cachedDirectoryFileInformation.Add(
                ROOT,
                new DirectoryFileInformation(true)
                {
                    FileName = ROOT
                });

            this.fTPSClient.Connect(
                ftpOptions.HostName,
                new NetworkCredential(ftpOptions.UserName, ftpOptions.Password),
                ESSLSupportMode.ClearText);

            Task.Factory.StartNew(() =>
            {
                while (true)
                {
                    fTPSClientTaskQueue.Take().RunSynchronously();
                }
            });
        }
Beispiel #2
0
        internal DokanFtpClient(FTPSClient fTPSClient, IFtpOptions ftpOptions)
        {
            this.fTPSClient = fTPSClient;
            this.ftpOptions = ftpOptions;

            const string ROOT = "\\";

            cachedDirectoryFileInformation.Add(
                ROOT,
                new DirectoryFileInformation(true)
            {
                FileName = ROOT
            });

            this.fTPSClient.Connect(
                ftpOptions.HostName,
                new NetworkCredential(ftpOptions.UserName, ftpOptions.Password),
                ESSLSupportMode.ClearText);

            Task.Factory.StartNew(() =>
            {
                while (true)
                {
                    fTPSClientTaskQueue.Take().RunSynchronously();
                }
            });
        }