Exemple #1
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);
            }
        }
Exemple #2
0
 public SVNFileSystemStream(FileSystemFile file, Action <FileSystemStream> disposeAction) : base(file, disposeAction)
 {
     m_wdFile = ((SVNFileSystem.SVNFSH)file.Handle).Item as WebDAV.File;
     SVNFileSystem fs = file.FileSystem as SVNFileSystem;
 }