Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
            }
        }
Ejemplo n.º 5
0
        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));
        }