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); }
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; }
public FsMountSftp(ISftpAccount account) : base(account.Name) { this.account = account; }
public SshGateSession(Gen::List <SshUserData> gwchain, ISftpAccount account) : base(account, init_GetPrompt(gwchain)) { this.gwchain = gwchain; }
public SshSession(SshUserData data, ISftpAccount account) : base(account, data.Prompt) { this.data = data; this.config = new System.Collections.Hashtable(SSH_CONFIG); }
//========================================================================== // 操作 //========================================================================== protected SshSessionBase(ISftpAccount account, string prompt) { this.msg = new SshfsMessage(prompt); this.resources = new ResourceList(this.msg); this.account = account; }
public SftpFsOperation(SshUserData userdata, ISftpAccount account) : this(new SshSession(userdata, account), account) { }