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)); }
public FTPFileSystemSession(FTPFileSystem fs, IFileSystemHandle handle, FTPFileSystemSessionConnectParams cParams) : base(fs, handle, cParams) { m_Connection = new Session(); m_Connection.Open(cParams.Options); }