From 148be6f50e765866510641d99fee80be5a20466b Mon Sep 17 00:00:00 2001 From: olegkap_cp Date: Tue, 22 Nov 2011 20:09:42 +0000 Subject: [PATCH] Allow cancel long running async executed commands Add BreakRequestInfo for possible future support --- .../Renci.SshNet.NET35.csproj | 5 +- .../Renci.SshNet/Channels/Channel.cs | 12 +++- .../Channels/ChannelDirectTcpip.cs | 8 +++ .../Channels/ChannelForwardedTcpip.cs | 10 ++- .../Renci.SshNet/Channels/ChannelSession.cs | 17 ++++- .../ChannelRequest/BreakRequestInfo.cs | 72 +++++++++++++++++++ .../Renci.SshNet/Renci.SshNet.csproj | 1 + Renci.SshClient/Renci.SshNet/Shell.cs | 6 ++ Renci.SshClient/Renci.SshNet/SshCommand.cs | 41 +++++------ .../Renci.SshNet/SubsystemSession.cs | 2 + 10 files changed, 142 insertions(+), 32 deletions(-) create mode 100644 Renci.SshClient/Renci.SshNet/Messages/Connection/ChannelRequest/BreakRequestInfo.cs diff --git a/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj b/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj index abf5c776..bb4e0577 100644 --- a/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj +++ b/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj @@ -295,6 +295,9 @@ Messages\Connection\ChannelOpen\X11ChannelOpenInfo.cs + + Messages\Connection\ChannelRequest\BreakRequestInfo.cs + Messages\Connection\ChannelRequest\ChannelRequestMessage.cs @@ -712,7 +715,7 @@ - +