Exemple #1
0
 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;
 }
Exemple #2
0
        public void Release()
        {
            _attributes = null;

            if (_stream != null)
            {
                _stream.Close();
                _stream = null;
            }
            GC.SuppressFinalize(this);
        }
Exemple #3
0
        public void Release()
        {
            _attributes = null;

            if (_stream != null)
            {
                _stream.Close();
                _stream = null;
            }
            GC.SuppressFinalize(this);
        }
Exemple #4
0
 public SftpContext(SftpSession session, string path, FileMode mode, FileAccess access,
                 SftpFileAttributes attributes)
 {
     _stream = new SftpContextStream(session, path, mode, access, attributes);
 }
Exemple #5
0
 public SftpContext(SftpSession session, string path, FileMode mode, FileAccess access,
                    SftpFileAttributes attributes)
 {
     _stream = new SftpContextStream(session, path, mode, access, attributes);
 }