public RequestClose ( byte handle ) : void | ||
handle | byte | The handle. |
return | void |
public void RequestClose(byte[] handle)
{
SshException exception = null;
using (var wait = new AutoResetEvent(false))
{
var request = new SftpCloseRequest(ProtocolVersion, NextRequestId, handle,
response =>
{
exception = GetSftpException(response);
wait.Set();
});
SendRequest(request);
WaitOnHandle(wait, OperationTimeout);
}
if (exception != null)
{
throw exception;
}
}