Example #1
0
        public SVNFileSystemSession StartSession(SVNFileSystemSessionConnectParams cParams)
        {
            var svnCParams = cParams ?? (DefaultSessionConnectParams as SVNFileSystemSessionConnectParams);

            if (svnCParams == null)
            {
                throw new AzosIOException(Azos.Web.StringConsts.FS_SESSION_BAD_PARAMS_ERROR + this.GetType() + ".StartSession");
            }

            return(new SVNFileSystemSession(this, null, svnCParams));
        }
Example #2
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, log: fs.App.Log);
            }
            else
            {
                m_WebDAV = new WebDAV(cParams.ServerURL, cParams.TimeoutMs, cred.ID, cred.Password, log: fs.App.Log);
            }
        }