public SftpContext(SftpClient client, string path, FileMode mode, FileAccess access, SftpFileAttributes attributes) { //_stream = client.Open(path, mode, access); _stream = new SftpContextStream(client.getSftpSession(), path, mode, access, attributes); _attributes = attributes; }
public void Release() { _attributes = null; if (_stream != null) { _stream.Close(); _stream = null; } GC.SuppressFinalize(this); }
public SftpContext(SftpSession session, string path, FileMode mode, FileAccess access, SftpFileAttributes attributes) { _stream = new SftpContextStream(session, path, mode, access, attributes); }