public SVNFileSystemSession StartSession(SVNFileSystemSessionConnectParams cParams) { var svnCParams = cParams ?? (DefaultSessionConnectParams as SVNFileSystemSessionConnectParams); if (svnCParams == null) throw new NFXException(NFX.Web.StringConsts.FS_SESSION_BAD_PARAMS_ERROR + this.GetType() + ".StartSession"); return new SVNFileSystemSession(this, null, svnCParams); }
public SVNFileSystemSession StartSession(SVNFileSystemSessionConnectParams cParams) { var svnCParams = cParams ?? (DefaultSessionConnectParams as SVNFileSystemSessionConnectParams); if (svnCParams == null) { throw new NFXException(NFX.Web.StringConsts.FS_SESSION_BAD_PARAMS_ERROR + this.GetType() + ".StartSession"); } return(new SVNFileSystemSession(this, null, svnCParams)); }
internal SVNFileSystemSession(SVNFileSystem fs, IFileSystemHandle handle, SVNFileSystemSessionConnectParams cParams) : base(fs, handle, cParams) { m_ServerURL = cParams.ServerURL; var cred = cParams.User.Credentials as IDPasswordCredentials; if (cred == null) m_WebDAV = new WebDAV(cParams.ServerURL, cParams.TimeoutMs); else m_WebDAV = new WebDAV(cParams.ServerURL, cParams.TimeoutMs, cred.ID, cred.Password); }
internal SVNFileSystemSession(SVNFileSystem fs, IFileSystemHandle handle, SVNFileSystemSessionConnectParams cParams) : base(fs, handle, cParams) { m_ServerURL = cParams.ServerURL; var cred = cParams.User.Credentials as IDPasswordCredentials; if (cred == null) { m_WebDAV = new WebDAV(cParams.ServerURL, cParams.TimeoutMs); } else { m_WebDAV = new WebDAV(cParams.ServerURL, cParams.TimeoutMs, cred.ID, cred.Password); } }
public void SetUp() { CONN_PARAMS = FileSystemSessionConnectParams.Make<SVNFileSystemSessionConnectParams>( "svn{{ name='aaa' server-url='{0}' user-name='{1}' user-password='******' }}".Args(SVN_ROOT, SVN_UNAME, SVN_UPSW)); CONN_PARAMS_TIMEOUT = FileSystemSessionConnectParams.Make<SVNFileSystemSessionConnectParams>( "svn{{ name='aaa' server-url='{0}' user-name='{1}' user-password='******' timeout-ms=1 }}".Args(SVN_ROOT, SVN_UNAME, SVN_UPSW)); }