示例#1
0
 public override IPushConnection openPush()
 {
     var c = new SftpObjectDatabase(Uri.Path, this);
     var r = new WalkPushConnection(this, c);
     r.available(c.ReadAdvertisedRefs());
     return r;
 }
示例#2
0
        public override IPushConnection openPush()
        {
            var c = new SftpObjectDatabase(Uri.Path, this);
            var r = new WalkPushConnection(this, c);

            r.available(c.ReadAdvertisedRefs());
            return(r);
        }
示例#3
0
 private SftpObjectDatabase(SftpObjectDatabase parent, string p, TransportSftp instance)
 {
     this._instance = instance;
     try
     {
         _ftp = instance.NewSftp();
         _ftp.cd(parent._objectsPath);
         _ftp.cd(p);
         _objectsPath = _ftp.pwd();
     }
     catch (TransportException)
     {
         close();
         throw;
     }
     catch (SftpException je)
     {
         throw new TransportException("Can't enter " + p + " from " + parent._objectsPath + ": " + je.message, je);
     }
 }
示例#4
0
 private SftpObjectDatabase(SftpObjectDatabase parent, string p, TransportSftp instance)
 {
     this._instance = instance;
     try
     {
         _ftp = instance.NewSftp();
         _ftp.cd(parent._objectsPath);
         _ftp.cd(p);
         _objectsPath = _ftp.pwd();
     }
     catch (TransportException)
     {
         CleanUp();
         throw;
     }
     catch (SftpException je)
     {
         throw new TransportException("Can't enter " + p + " from " + parent._objectsPath + ": " + je.message, je);
     }
 }