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