Sfoglia il codice sorgente

Remove this qualifier.

drieseng 9 anni fa
parent
commit
316ae12fdc
34 ha cambiato i file con 212 aggiunte e 216 eliminazioni
  1. 3 3
      src/Renci.SshNet/Sftp/Requests/ExtendedRequests/FStatVfsRequest.cs
  2. 16 16
      src/Renci.SshNet/Sftp/Requests/SftpBlockRequest.cs
  3. 4 4
      src/Renci.SshNet/Sftp/Requests/SftpCloseRequest.cs
  4. 1 1
      src/Renci.SshNet/Sftp/Requests/SftpExtendedRequest.cs
  5. 7 7
      src/Renci.SshNet/Sftp/Requests/SftpFSetStatRequest.cs
  6. 5 5
      src/Renci.SshNet/Sftp/Requests/SftpFStatRequest.cs
  7. 3 3
      src/Renci.SshNet/Sftp/Requests/SftpInitRequest.cs
  8. 5 5
      src/Renci.SshNet/Sftp/Requests/SftpLStatRequest.cs
  9. 9 9
      src/Renci.SshNet/Sftp/Requests/SftpLinkRequest.cs
  10. 5 5
      src/Renci.SshNet/Sftp/Requests/SftpMkDirRequest.cs
  11. 9 9
      src/Renci.SshNet/Sftp/Requests/SftpOpenRequest.cs
  12. 5 5
      src/Renci.SshNet/Sftp/Requests/SftpReadDirRequest.cs
  13. 4 4
      src/Renci.SshNet/Sftp/Requests/SftpReadLinkRequest.cs
  14. 13 13
      src/Renci.SshNet/Sftp/Requests/SftpReadRequest.cs
  15. 4 4
      src/Renci.SshNet/Sftp/Requests/SftpRealPathRequest.cs
  16. 4 4
      src/Renci.SshNet/Sftp/Requests/SftpRemoveRequest.cs
  17. 7 7
      src/Renci.SshNet/Sftp/Requests/SftpRenameRequest.cs
  18. 15 15
      src/Renci.SshNet/Sftp/Requests/SftpRequest.cs
  19. 4 4
      src/Renci.SshNet/Sftp/Requests/SftpRmDirRequest.cs
  20. 7 7
      src/Renci.SshNet/Sftp/Requests/SftpSetStatRequest.cs
  21. 5 5
      src/Renci.SshNet/Sftp/Requests/SftpStatRequest.cs
  22. 8 8
      src/Renci.SshNet/Sftp/Requests/SftpSymLinkRequest.cs
  23. 12 12
      src/Renci.SshNet/Sftp/Requests/SftpUnblockRequest.cs
  24. 16 16
      src/Renci.SshNet/Sftp/Requests/SftpWriteRequest.cs
  25. 3 3
      src/Renci.SshNet/Sftp/Responses/ExtendedReplies/ExtendedReplyInfo.cs
  26. 11 11
      src/Renci.SshNet/Sftp/Responses/ExtendedReplies/StatVfsReplyInfo.cs
  27. 1 1
      src/Renci.SshNet/Sftp/Responses/SftpAttrsResponse.cs
  28. 4 4
      src/Renci.SshNet/Sftp/Responses/SftpDataResponse.cs
  29. 1 1
      src/Renci.SshNet/Sftp/Responses/SftpExtendedReplyResponse.cs
  30. 2 2
      src/Renci.SshNet/Sftp/Responses/SftpHandleResponse.cs
  31. 9 9
      src/Renci.SshNet/Sftp/Responses/SftpNameResponse.cs
  32. 2 2
      src/Renci.SshNet/Sftp/Responses/SftpResponse.cs
  33. 6 9
      src/Renci.SshNet/Sftp/Responses/SftpStatusResponse.cs
  34. 2 3
      src/Renci.SshNet/Sftp/Responses/SftpVersionResponse.cs

+ 3 - 3
src/Renci.SshNet/Sftp/Requests/ExtendedRequests/FStatVfsRequest.cs

@@ -29,14 +29,14 @@ namespace Renci.SshNet.Sftp.Requests
         public FStatVfsRequest(uint protocolVersion, uint requestId, byte[] handle, Action<SftpExtendedReplyResponse> extendedAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction, "fstatvfs@openssh.com")
         {
-            this.Handle = handle;
-            this.SetAction(extendedAction);
+            Handle = handle;
+            SetAction(extendedAction);
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
+            WriteBinaryString(Handle);
         }
     }
 }

+ 16 - 16
src/Renci.SshNet/Sftp/Requests/SftpBlockRequest.cs

@@ -12,11 +12,11 @@ namespace Renci.SshNet.Sftp.Requests
 
         public byte[] Handle { get; private set; }
 
-        public UInt64 Offset { get; private set; }
+        public ulong Offset { get; private set; }
 
-        public UInt64 Length { get; private set; }
+        public ulong Length { get; private set; }
 
-        public UInt32 LockMask { get; private set; }
+        public uint LockMask { get; private set; }
 
 #if TUNING
         /// <summary>
@@ -43,32 +43,32 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpBlockRequest(uint protocolVersion, uint requestId, byte[] handle, UInt64 offset, UInt64 length, UInt32 lockMask, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.Offset = offset;
-            this.Length = length;
-            this.LockMask = lockMask;
+            Handle = handle;
+            Offset = offset;
+            Length = length;
+            LockMask = lockMask;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = this.ReadBinaryString();
 #endif
-            this.Offset = this.ReadUInt64();
-            this.Length = this.ReadUInt64();
-            this.LockMask = this.ReadUInt32();
+            Offset = ReadUInt64();
+            Length = ReadUInt64();
+            LockMask = ReadUInt32();
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
-            this.Write(this.Offset);
-            this.Write(this.Length);
-            this.Write(this.LockMask);
+            WriteBinaryString(Handle);
+            Write(Offset);
+            Write(Length);
+            Write(LockMask);
         }
     }
 }

+ 4 - 4
src/Renci.SshNet/Sftp/Requests/SftpCloseRequest.cs

@@ -34,23 +34,23 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpCloseRequest(uint protocolVersion, uint requestId, byte[] handle, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
+            Handle = handle;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = this.ReadBinaryString();
 #endif
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
+            WriteBinaryString(Handle);
         }
     }
 }

+ 1 - 1
src/Renci.SshNet/Sftp/Requests/SftpExtendedRequest.cs

@@ -51,7 +51,7 @@ namespace Renci.SshNet.Sftp.Requests
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(_nameBytes);
+            WriteBinaryString(_nameBytes);
         }
     }
 }

+ 7 - 7
src/Renci.SshNet/Sftp/Requests/SftpFSetStatRequest.cs

@@ -57,29 +57,29 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpFSetStatRequest(uint protocolVersion, uint requestId, byte[] handle, SftpFileAttributes attributes, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.Attributes = attributes;
+            Handle = handle;
+            Attributes = attributes;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = this.ReadBinaryString();
 #endif
-            this.Attributes = this.ReadAttributes();
+            Attributes = ReadAttributes();
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
+            WriteBinaryString(Handle);
 #if TUNING
             Write(AttributesBytes);
 #else
-            this.Write(this.Attributes);
+            Write(Attributes);
 #endif
         }
     }

+ 5 - 5
src/Renci.SshNet/Sftp/Requests/SftpFStatRequest.cs

@@ -34,24 +34,24 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpFStatRequest(uint protocolVersion, uint requestId, byte[] handle, Action<SftpAttrsResponse> attrsAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.SetAction(attrsAction);
+            Handle = handle;
+            SetAction(attrsAction);
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = ReadBinaryString();
 #endif
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
+            WriteBinaryString(Handle);
         }
     }
 }

+ 3 - 3
src/Renci.SshNet/Sftp/Requests/SftpInitRequest.cs

@@ -29,19 +29,19 @@
 
         public SftpInitRequest(uint version)
         {
-            this.Version = version;
+            Version = version;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
-            this.Version = this.ReadUInt32();
+            Version = ReadUInt32();
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.Write(this.Version);
+            Write(Version);
         }
     }
 }

+ 5 - 5
src/Renci.SshNet/Sftp/Requests/SftpLStatRequest.cs

@@ -49,9 +49,9 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpLStatRequest(uint protocolVersion, uint requestId, string path, Encoding encoding, Action<SftpAttrsResponse> attrsAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Path = path;
-            this.SetAction(attrsAction);
+            Encoding = encoding;
+            Path = path;
+            SetAction(attrsAction);
         }
 
         protected override void LoadData()
@@ -60,7 +60,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             _path = ReadBinary();
 #else
-            this.Path = this.ReadString(this.Encoding);
+            Path = ReadString(Encoding);
 #endif
         }
 
@@ -70,7 +70,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_path);
 #else
-            this.Write(this.Path, this.Encoding);
+            Write(Path, Encoding);
 #endif
         }
     }

+ 9 - 9
src/Renci.SshNet/Sftp/Requests/SftpLinkRequest.cs

@@ -71,9 +71,9 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpLinkRequest(uint protocolVersion, uint requestId, string newLinkPath, string existingPath, bool isSymLink, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.NewLinkPath = newLinkPath;
-            this.ExistingPath = existingPath;
-            this.IsSymLink = isSymLink;
+            NewLinkPath = newLinkPath;
+            ExistingPath = existingPath;
+            IsSymLink = isSymLink;
         }
 
         protected override void LoadData()
@@ -83,10 +83,10 @@ namespace Renci.SshNet.Sftp.Requests
             _newLinkPath = ReadBinary();
             _existingPath = ReadBinary();
 #else
-            this.NewLinkPath = this.ReadString();
-            this.ExistingPath = this.ReadString();
+            NewLinkPath = ReadString();
+            ExistingPath = ReadString();
 #endif
-            this.IsSymLink = this.ReadBoolean();
+            IsSymLink = ReadBoolean();
         }
 
         protected override void SaveData()
@@ -96,10 +96,10 @@ namespace Renci.SshNet.Sftp.Requests
             WriteBinaryString(_newLinkPath);
             WriteBinaryString(_existingPath);
 #else
-            this.Write(this.NewLinkPath);
-            this.Write(this.ExistingPath);
+            Write(NewLinkPath);
+            Write(ExistingPath);
 #endif
-            this.Write(this.IsSymLink);
+            Write(IsSymLink);
         }
     }
 }

+ 5 - 5
src/Renci.SshNet/Sftp/Requests/SftpMkDirRequest.cs

@@ -79,7 +79,7 @@ namespace Renci.SshNet.Sftp.Requests
             : base(protocolVersion, requestId, statusAction)
         {
             Encoding = encoding;
-            this.Path = path;
+            Path = path;
             Attributes = attributes;
         }
 
@@ -89,9 +89,9 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             _path = ReadBinary();
 #else
-            this.Path = this.ReadString(this.Encoding);
+            Path = ReadString(Encoding);
 #endif
-            this.Attributes = this.ReadAttributes();
+            Attributes = ReadAttributes();
         }
 
         protected override void SaveData()
@@ -101,8 +101,8 @@ namespace Renci.SshNet.Sftp.Requests
             WriteBinaryString(_path);
             Write(AttributesBytes);
 #else
-            this.Write(this.Path, this.Encoding);
-            this.Write(this.Attributes);
+            Write(Path, Encoding);
+            Write(Attributes);
 #endif
         }
     }

+ 9 - 9
src/Renci.SshNet/Sftp/Requests/SftpOpenRequest.cs

@@ -69,12 +69,12 @@ namespace Renci.SshNet.Sftp.Requests
         private SftpOpenRequest(uint protocolVersion, uint requestId, string fileName, Encoding encoding, Flags flags, SftpFileAttributes attributes, Action<SftpHandleResponse> handleAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Filename = fileName;
-            this.Flags = flags;
-            this.Attributes = attributes;
+            Encoding = encoding;
+            Filename = fileName;
+            Flags = flags;
+            Attributes = attributes;
 
-            this.SetAction(handleAction);
+            SetAction(handleAction);
         }
 
         protected override void LoadData()
@@ -90,13 +90,13 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_fileName);
 #else
-            this.Write(this.Filename, this.Encoding);
+            Write(Filename, Encoding);
 #endif
-            this.Write((uint)this.Flags);
+            Write((uint)Flags);
 #if TUNING
-            this.Write(_attributes);
+            Write(_attributes);
 #else
-            this.Write(this.Attributes);
+            Write(Attributes);
 #endif
         }
     }

+ 5 - 5
src/Renci.SshNet/Sftp/Requests/SftpReadDirRequest.cs

@@ -34,24 +34,24 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpReadDirRequest(uint protocolVersion, uint requestId, byte[] handle, Action<SftpNameResponse> nameAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.SetAction(nameAction);
+            Handle = handle;
+            SetAction(nameAction);
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = ReadBinaryString();
 #endif
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
+            WriteBinaryString(Handle);
         }
     }
 }

+ 4 - 4
src/Renci.SshNet/Sftp/Requests/SftpReadLinkRequest.cs

@@ -49,9 +49,9 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpReadLinkRequest(uint protocolVersion, uint requestId, string path, Encoding encoding, Action<SftpNameResponse> nameAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Path = path;
-            this.SetAction(nameAction);
+            Encoding = encoding;
+            Path = path;
+            SetAction(nameAction);
         }
 
         protected override void LoadData()
@@ -72,7 +72,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_path);
 #else
-            this.Write(this.Path, this.Encoding);
+            Write(Path, Encoding);
 #endif
         }
     }

+ 13 - 13
src/Renci.SshNet/Sftp/Requests/SftpReadRequest.cs

@@ -12,9 +12,9 @@ namespace Renci.SshNet.Sftp.Requests
 
         public byte[] Handle { get; private set; }
 
-        public UInt64 Offset { get; private set; }
+        public ulong Offset { get; private set; }
 
-        public UInt32 Length { get; private set; }
+        public uint Length { get; private set; }
 
 #if TUNING
         /// <summary>
@@ -40,30 +40,30 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpReadRequest(uint protocolVersion, uint requestId, byte[] handle, UInt64 offset, UInt32 length, Action<SftpDataResponse> dataAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.Offset = offset;
-            this.Length = length;
-            this.SetAction(dataAction);
+            Handle = handle;
+            Offset = offset;
+            Length = length;
+            SetAction(dataAction);
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = ReadBinaryString();
 #endif
-            this.Offset = this.ReadUInt64();
-            this.Length = this.ReadUInt32();
+            Offset = ReadUInt64();
+            Length = ReadUInt32();
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
-            this.Write(this.Offset);
-            this.Write(this.Length);
+            WriteBinaryString(Handle);
+            Write(Offset);
+            Write(Length);
         }
     }
 }

+ 4 - 4
src/Renci.SshNet/Sftp/Requests/SftpRealPathRequest.cs

@@ -54,9 +54,9 @@ namespace Renci.SshNet.Sftp.Requests
             if (statusAction == null)
                 throw new ArgumentNullException("statusAction");
 
-            this.Encoding = encoding;
-            this.Path = path;
-            this.SetAction(nameAction);
+            Encoding = encoding;
+            Path = path;
+            SetAction(nameAction);
             
         }
 
@@ -66,7 +66,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_path);
 #else
-            this.Write(this.Path, this.Encoding);
+            Write(Path, Encoding);
 #endif
         }
     }

+ 4 - 4
src/Renci.SshNet/Sftp/Requests/SftpRemoveRequest.cs

@@ -49,8 +49,8 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpRemoveRequest(uint protocolVersion, uint requestId, string filename, Encoding encoding, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Filename = filename;
+            Encoding = encoding;
+            Filename = filename;
         }
 
         protected override void LoadData()
@@ -59,7 +59,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             _fileName = ReadBinary();
 #else
-            this.Filename = this.ReadString(this.Encoding);
+            Filename = ReadString(Encoding);
 #endif
         }
 
@@ -69,7 +69,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_fileName);
 #else
-            this.Write(this.Filename, this.Encoding);
+            Write(Filename, Encoding);
 #endif
         }
     }

+ 7 - 7
src/Renci.SshNet/Sftp/Requests/SftpRenameRequest.cs

@@ -62,9 +62,9 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpRenameRequest(uint protocolVersion, uint requestId, string oldPath, string newPath, Encoding encoding, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.OldPath = oldPath;
-            this.NewPath = newPath;
+            Encoding = encoding;
+            OldPath = oldPath;
+            NewPath = newPath;
         }
 
         protected override void LoadData()
@@ -75,8 +75,8 @@ namespace Renci.SshNet.Sftp.Requests
             _oldPath = ReadBinary();
             _newPath = ReadBinary();
 #else
-            this.OldPath = this.ReadString(this.Encoding);
-            this.NewPath = this.ReadString(this.Encoding);
+            OldPath = ReadString(Encoding);
+            NewPath = ReadString(Encoding);
 #endif
 
         }
@@ -89,8 +89,8 @@ namespace Renci.SshNet.Sftp.Requests
             WriteBinaryString(_oldPath);
             WriteBinaryString(_newPath);
 #else
-            this.Write(this.OldPath, this.Encoding);
-            this.Write(this.NewPath, this.Encoding);
+            Write(OldPath, Encoding);
+            Write(NewPath, Encoding);
 #endif
         }
     }

+ 15 - 15
src/Renci.SshNet/Sftp/Requests/SftpRequest.cs

@@ -36,36 +36,36 @@ namespace Renci.SshNet.Sftp.Requests
 
         protected SftpRequest(uint protocolVersion, uint requestId, Action<SftpStatusResponse> statusAction)
         {
-            this.RequestId = requestId;
-            this.ProtocolVersion = protocolVersion;
-            this._statusAction = statusAction;
+            RequestId = requestId;
+            ProtocolVersion = protocolVersion;
+            _statusAction = statusAction;
         }
 
         public void Complete(SftpResponse response)
         {
             if (response is SftpStatusResponse)
             {
-                this._statusAction(response as SftpStatusResponse);
+                _statusAction(response as SftpStatusResponse);
             }
             else if (response is SftpAttrsResponse)
             {
-                this._attrsAction(response as SftpAttrsResponse);
+                _attrsAction(response as SftpAttrsResponse);
             }
             else if (response is SftpDataResponse)
             {
-                this._dataAction(response as SftpDataResponse);
+                _dataAction(response as SftpDataResponse);
             }
             else if (response is SftpExtendedReplyResponse)
             {
-                this._extendedReplyAction(response as SftpExtendedReplyResponse);
+                _extendedReplyAction(response as SftpExtendedReplyResponse);
             }
             else if (response is SftpHandleResponse)
             {
-                this._handleAction(response as SftpHandleResponse);
+                _handleAction(response as SftpHandleResponse);
             }
             else if (response is SftpNameResponse)
             {
-                this._nameAction(response as SftpNameResponse);
+                _nameAction(response as SftpNameResponse);
             }
             else
             {
@@ -75,27 +75,27 @@ namespace Renci.SshNet.Sftp.Requests
 
         protected void SetAction(Action<SftpAttrsResponse> action)
         {
-            this._attrsAction = action;
+            _attrsAction = action;
         }
 
         protected void SetAction(Action<SftpDataResponse> action)
         {
-            this._dataAction = action;
+            _dataAction = action;
         }
 
         protected void SetAction(Action<SftpExtendedReplyResponse> action)
         {
-            this._extendedReplyAction = action;
+            _extendedReplyAction = action;
         }
 
         protected void SetAction(Action<SftpHandleResponse> action)
         {
-            this._handleAction = action;
+            _handleAction = action;
         }
 
         protected void SetAction(Action<SftpNameResponse> action)
         {
-            this._nameAction = action;
+            _nameAction = action;
         }
 
         protected override void LoadData()
@@ -106,7 +106,7 @@ namespace Renci.SshNet.Sftp.Requests
         protected override void SaveData()
         {
             base.SaveData();
-            this.Write(this.RequestId);
+            Write(RequestId);
         }
     }
 }

+ 4 - 4
src/Renci.SshNet/Sftp/Requests/SftpRmDirRequest.cs

@@ -49,8 +49,8 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpRmDirRequest(uint protocolVersion, uint requestId, string path, Encoding encoding, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Path = path;
+            Encoding = encoding;
+            Path = path;
         }
 
         protected override void LoadData()
@@ -59,7 +59,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             _path = ReadBinary();
 #else
-            this.Path = this.ReadString(this.Encoding);
+            Path = ReadString(Encoding);
 #endif
         }
 
@@ -69,7 +69,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_path);
 #else
-            this.Write(this.Path, this.Encoding);
+            Write(Path, Encoding);
 #endif
         }
     }

+ 7 - 7
src/Renci.SshNet/Sftp/Requests/SftpSetStatRequest.cs

@@ -69,9 +69,9 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpSetStatRequest(uint protocolVersion, uint requestId, string path, Encoding encoding, SftpFileAttributes attributes, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Path = path;
-            this.Attributes = attributes;
+            Encoding = encoding;
+            Path = path;
+            Attributes = attributes;
         }
 
         protected override void LoadData()
@@ -80,9 +80,9 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             _path = ReadBinary();
 #else
-            this.Path = this.ReadString(this.Encoding);
+            Path = ReadString(Encoding);
 #endif
-            this.Attributes = this.ReadAttributes();
+            Attributes = ReadAttributes();
         }
 
         protected override void SaveData()
@@ -92,8 +92,8 @@ namespace Renci.SshNet.Sftp.Requests
             WriteBinaryString(_path);
             Write(AttributesBytes);
 #else
-            this.Write(this.Path, this.Encoding);
-            this.Write(this.Attributes);
+            Write(Path, Encoding);
+            Write(Attributes);
 #endif
         }
     }

+ 5 - 5
src/Renci.SshNet/Sftp/Requests/SftpStatRequest.cs

@@ -49,9 +49,9 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpStatRequest(uint protocolVersion, uint requestId, string path, Encoding encoding, Action<SftpAttrsResponse> attrsAction, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Encoding = encoding;
-            this.Path = path;
-            this.SetAction(attrsAction);
+            Encoding = encoding;
+            Path = path;
+            SetAction(attrsAction);
         }
 
         protected override void LoadData()
@@ -60,7 +60,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             _path = ReadBinary();
 #else
-            this.Path = this.ReadString(this.Encoding);
+            Path = ReadString(Encoding);
 #endif
         }
 
@@ -70,7 +70,7 @@ namespace Renci.SshNet.Sftp.Requests
 #if TUNING
             WriteBinaryString(_path);
 #else
-            this.Write(this.Path, this.Encoding);
+            Write(Path, Encoding);
 #endif
         }
     }

+ 8 - 8
src/Renci.SshNet/Sftp/Requests/SftpSymLinkRequest.cs

@@ -63,12 +63,12 @@ namespace Renci.SshNet.Sftp.Requests
             : base(protocolVersion, requestId, statusAction)
         {
 #if TUNING
-            this.Encoding = encoding;
+            Encoding = encoding;
 #endif
-            this.NewLinkPath = newLinkPath;
-            this.ExistingPath = existingPath;
+            NewLinkPath = newLinkPath;
+            ExistingPath = existingPath;
 #if !TUNING
-            this.Encoding = encoding;
+            Encoding = encoding;
 #endif
         }
 
@@ -79,8 +79,8 @@ namespace Renci.SshNet.Sftp.Requests
             _newLinkPath = ReadBinary();
             _existingPath = ReadBinary();
 #else
-            this.NewLinkPath = this.ReadString(this.Encoding);
-            this.ExistingPath = this.ReadString(this.Encoding);
+            NewLinkPath = ReadString(Encoding);
+            ExistingPath = ReadString(Encoding);
 #endif
         }
 
@@ -91,8 +91,8 @@ namespace Renci.SshNet.Sftp.Requests
             WriteBinaryString(_newLinkPath);
             WriteBinaryString(_existingPath);
 #else
-            this.Write(this.NewLinkPath, this.Encoding);
-            this.Write(this.ExistingPath, this.Encoding);
+            Write(NewLinkPath, Encoding);
+            Write(ExistingPath, Encoding);
 #endif
         }
     }

+ 12 - 12
src/Renci.SshNet/Sftp/Requests/SftpUnblockRequest.cs

@@ -12,9 +12,9 @@ namespace Renci.SshNet.Sftp.Requests
 
         public byte[] Handle { get; private set; }
 
-        public UInt64 Offset { get; private set; }
+        public ulong Offset { get; private set; }
 
-        public UInt64 Length { get; private set; }
+        public ulong Length { get; private set; }
 
 #if TUNING
         /// <summary>
@@ -40,29 +40,29 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpUnblockRequest(uint protocolVersion, uint requestId, byte[] handle, UInt64 offset, UInt64 length, Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.Offset = offset;
-            this.Length = length;
+            Handle = handle;
+            Offset = offset;
+            Length = length;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = ReadBinaryString();
 #endif
-            this.Offset = this.ReadUInt64();
-            this.Length = this.ReadUInt64();
+            Offset = ReadUInt64();
+            Length = ReadUInt64();
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
-            this.Write(this.Offset);
-            this.Write(this.Length);
+            WriteBinaryString(Handle);
+            Write(Offset);
+            Write(Length);
         }
     }
 }

+ 16 - 16
src/Renci.SshNet/Sftp/Requests/SftpWriteRequest.cs

@@ -12,7 +12,7 @@ namespace Renci.SshNet.Sftp.Requests
 
         public byte[] Handle { get; private set; }
 
-        public UInt64 Offset { get; private set; }
+        public ulong Offset { get; private set; }
 
         public byte[] Data { get; private set; }
 
@@ -37,7 +37,7 @@ namespace Renci.SshNet.Sftp.Requests
         public SftpWriteRequest(uint protocolVersion,
                                 uint requestId,
                                 byte[] handle,
-                                UInt64 offset,
+                                ulong offset,
                                 byte[] data,
 #if TUNING
                                 int length,
@@ -45,11 +45,11 @@ namespace Renci.SshNet.Sftp.Requests
                                 Action<SftpStatusResponse> statusAction)
             : base(protocolVersion, requestId, statusAction)
         {
-            this.Handle = handle;
-            this.Offset = offset;
-            this.Data = data;
+            Handle = handle;
+            Offset = offset;
+            Data = data;
 #if TUNING
-            this.Length = length;
+            Length = length;
 #endif
         }
 
@@ -57,30 +57,30 @@ namespace Renci.SshNet.Sftp.Requests
         {
             base.LoadData();
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = ReadBinaryString();
 #endif
-            this.Offset = this.ReadUInt64();
+            Offset = ReadUInt64();
 #if TUNING
-            this.Data = this.ReadBinary();
+            Data = ReadBinary();
 #else
-            this.Data = this.ReadBinaryString();
+            Data = ReadBinaryString();
 #endif
 #if TUNING
-            this.Length = this.Data.Length;
+            Length = Data.Length;
 #endif
         }
 
         protected override void SaveData()
         {
             base.SaveData();
-            this.WriteBinaryString(this.Handle);
-            this.Write(this.Offset);
+            WriteBinaryString(Handle);
+            Write(Offset);
 #if TUNING
-            this.WriteBinary(this.Data, 0, Length);
+            WriteBinary(Data, 0, Length);
 #else
-            this.WriteBinaryString(this.Data);
+            WriteBinaryString(Data);
 #endif
         }
     }

+ 3 - 3
src/Renci.SshNet/Sftp/Responses/ExtendedReplies/ExtendedReplyInfo.cs

@@ -9,14 +9,14 @@ namespace Renci.SshNet.Sftp.Responses
         {
 #if TUNING
             // skip packet length
-            this.ReadUInt32();
+            ReadUInt32();
 #endif
 
             //  skip message type
-            this.ReadByte();
+            ReadByte();
 
             //  skip response id
-            this.ReadUInt32();
+            ReadUInt32();
         }
 
         protected override void SaveData()

+ 11 - 11
src/Renci.SshNet/Sftp/Responses/ExtendedReplies/StatVfsReplyInfo.cs

@@ -8,17 +8,17 @@
         {
             base.LoadData();
 
-            this.Information = new SftpFileSytemInformation(this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64(),
-                                                            this.ReadUInt64());
+            Information = new SftpFileSytemInformation(ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64(),
+                                                       ReadUInt64());
         }
 
         protected override void SaveData()

+ 1 - 1
src/Renci.SshNet/Sftp/Responses/SftpAttrsResponse.cs

@@ -17,7 +17,7 @@
         protected override void LoadData()
         {
             base.LoadData();
-            this.Attributes = this.ReadAttributes();
+            Attributes = ReadAttributes();
         }
     }
 }

+ 4 - 4
src/Renci.SshNet/Sftp/Responses/SftpDataResponse.cs

@@ -21,14 +21,14 @@
             base.LoadData();
             
 #if TUNING
-            this.Data = this.ReadBinary();
+            Data = ReadBinary();
 #else
-            this.Data = this.ReadBinaryString();
+            Data = ReadBinaryString();
 #endif
 
-            if (!this.IsEndOfData)
+            if (!IsEndOfData)
             {
-                this.IsEof = this.ReadBoolean();
+                IsEof = ReadBoolean();
             }
         }
     }

+ 1 - 1
src/Renci.SshNet/Sftp/Responses/SftpExtendedReplyResponse.cs

@@ -16,7 +16,7 @@ namespace Renci.SshNet.Sftp.Responses
 
         public T GetReply<T>() where T : SshData, new()
         {
-            return this.OfType<T>();
+            return OfType<T>();
         }
     }
 }

+ 2 - 2
src/Renci.SshNet/Sftp/Responses/SftpHandleResponse.cs

@@ -19,9 +19,9 @@
             base.LoadData();
             
 #if TUNING
-            this.Handle = this.ReadBinary();
+            Handle = ReadBinary();
 #else
-            this.Handle = this.ReadBinaryString();
+            Handle = ReadBinaryString();
 #endif
         }
     }

+ 9 - 9
src/Renci.SshNet/Sftp/Responses/SftpNameResponse.cs

@@ -19,23 +19,23 @@ namespace Renci.SshNet.Sftp.Responses
         public SftpNameResponse(uint protocolVersion, Encoding encoding)
             : base(protocolVersion)
         {
-            this.Files = new KeyValuePair<string, SftpFileAttributes>[0];
-            this.Encoding = encoding;
+            Files = new KeyValuePair<string, SftpFileAttributes>[0];
+            Encoding = encoding;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
             
-            this.Count = this.ReadUInt32();
-            this.Files = new KeyValuePair<string, SftpFileAttributes>[this.Count];
+            Count = ReadUInt32();
+            Files = new KeyValuePair<string, SftpFileAttributes>[Count];
             
-            for (int i = 0; i < this.Count; i++)
+            for (var i = 0; i < Count; i++)
             {
-                var fileName = this.ReadString(this.Encoding);
-                this.ReadString(this.Encoding);   //  skip longname
-                var attributes = this.ReadAttributes();
-                this.Files[i] = new KeyValuePair<string, SftpFileAttributes>(fileName, attributes);
+                var fileName = ReadString(Encoding);
+                ReadString(Encoding);   //  skip longname
+                var attributes = ReadAttributes();
+                Files[i] = new KeyValuePair<string, SftpFileAttributes>(fileName, attributes);
             }
         }
     }

+ 2 - 2
src/Renci.SshNet/Sftp/Responses/SftpResponse.cs

@@ -10,14 +10,14 @@ namespace Renci.SshNet.Sftp.Responses
 
         protected SftpResponse(uint protocolVersion)
         {
-            this.ProtocolVersion = protocolVersion;
+            ProtocolVersion = protocolVersion;
         }
 
         protected override void LoadData()
         {
             base.LoadData();
             
-            this.ResponseId = this.ReadUInt32();
+            ResponseId = ReadUInt32();
         }
 
         protected override void SaveData()

+ 6 - 9
src/Renci.SshNet/Sftp/Responses/SftpStatusResponse.cs

@@ -1,7 +1,4 @@
-using System.Text;
-using Renci.SshNet.Common;
-
-namespace Renci.SshNet.Sftp.Responses
+namespace Renci.SshNet.Sftp.Responses
 {
     internal class SftpStatusResponse : SftpResponse
     {
@@ -25,21 +22,21 @@ namespace Renci.SshNet.Sftp.Responses
         {
             base.LoadData();
 
-            this.StatusCode = (StatusCodes)this.ReadUInt32();
+            StatusCode = (StatusCodes) ReadUInt32();
 
-            if (this.ProtocolVersion < 3)
+            if (ProtocolVersion < 3)
             {
                 return;
             }
 
-            if (!this.IsEndOfData)
+            if (!IsEndOfData)
             {
                 // the SSH File Transfer Protocol specification states that the error message is UTF-8
-                this.ErrorMessage = this.ReadString(Utf8);
+                ErrorMessage = ReadString(Utf8);
 
                 // the language of the error message; RFC 1766 states that the language code may be
                 // expressed as US-ASCII
-                this.Language = this.ReadString(Ascii);
+                Language = ReadString(Ascii);
             }
         }
     }

+ 2 - 3
src/Renci.SshNet/Sftp/Responses/SftpVersionResponse.cs

@@ -16,8 +16,8 @@ namespace Renci.SshNet.Sftp.Responses
         protected override void LoadData()
         {
             base.LoadData();
-            this.Version = this.ReadUInt32();
-            this.Extentions = this.ReadExtensionPair();
+            Version = ReadUInt32();
+            Extentions = ReadExtensionPair();
         }
 
         protected override void SaveData()
@@ -28,6 +28,5 @@ namespace Renci.SshNet.Sftp.Responses
             if (Extentions != null)
                 Write(Extentions);
         }
-
     }
 }