Ejemplo n.º 1
0
 public SshGateSession(SshUserData user1, SshUserData user2, ISftpAccount account)
     : base(account, user2.Prompt)
 {
     this.gwchain = new Gen::List <SshUserData>();
     this.gwchain.Add(user1);
     this.gwchain.Add(user2);
 }
Ejemplo n.º 2
0
        public SftpFsOperation(ISshSession session, ISftpAccount account)
        {
            this.session    = session;
            this.stat_cache = new SftpStatCache(this);
            //this.cache=new RemoteEasyCache(this,session.Message);
            this.cache   = new RemoteDiskCache(this, session.Message);
            this.closer  = new FileAutoCloser(cache);
            this.account = account;

            // resolve_path
            string path_remote = account.ServerRoot;

            if (path_remote == null)
            {
                path_remote = "";
            }
            if (path_remote[path_remote.Length - 1] == '/')
            {
                path_remote = path_remote.Substring(0, path_remote.Length - 1);
            }
            this.path_remote = path_remote;
        }
Ejemplo n.º 3
0
 public FsMountSftp(ISftpAccount account) : base(account.Name)
 {
     this.account = account;
 }
Ejemplo n.º 4
0
 public SshGateSession(Gen::List <SshUserData> gwchain, ISftpAccount account)
     : base(account, init_GetPrompt(gwchain))
 {
     this.gwchain = gwchain;
 }
Ejemplo n.º 5
0
 public SshSession(SshUserData data, ISftpAccount account) : base(account, data.Prompt)
 {
     this.data   = data;
     this.config = new System.Collections.Hashtable(SSH_CONFIG);
 }
Ejemplo n.º 6
0
 //==========================================================================
 //	操作
 //==========================================================================
 protected SshSessionBase(ISftpAccount account, string prompt)
 {
     this.msg       = new SshfsMessage(prompt);
     this.resources = new ResourceList(this.msg);
     this.account   = account;
 }
Ejemplo n.º 7
0
 public SftpFsOperation(SshUserData userdata, ISftpAccount account)
     : this(new SshSession(userdata, account), account)
 {
 }