Ejemplo n.º 1
0
        public FTPFileSystemSession StartSession(FTPFileSystemSessionConnectParams cParams)
        {
            var sftpCParams = cParams ?? (DefaultSessionConnectParams as FTPFileSystemSessionConnectParams);

            if (sftpCParams == null)
            {
                throw new NFXException(NFX.Web.StringConsts.FS_SESSION_BAD_PARAMS_ERROR + this.GetType() + ".StartSession");
            }

            return(new FTPFileSystemSession(this, null, sftpCParams));
        }
Ejemplo n.º 2
0
 public FTPFileSystemSession(FTPFileSystem fs, IFileSystemHandle handle, FTPFileSystemSessionConnectParams cParams)
     : base(fs, handle, cParams)
 {
     m_Connection = new Session();
     m_Connection.Open(cParams.Options);
 }