We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are you planning to add an event "Closed" in the class "ShellStream"?
Something like this:
public event EventHandler Closed;
public override void Close() { if (_channel != null) _channel.Close(); base.Close(); }
private void Channel_Closed(object sender, ChannelEventArgs e) { if (Closed != null) { // Handle event on different thread ExecuteThread(() => Closed(this, new EventArgs())); } }
instead of this:
private void Channel_Closed(object sender, ChannelEventArgs e) { // TODO: Do we need to call dispose here ?? Dispose(); }
The text was updated successfully, but these errors were encountered:
Merge pull request sshnet#44 from tylergibson/devel
f1d404c
Fixing race condition issues, externalizing dependencies, adding per-host keepalive
OK, I have done this work for my own project.
https://github.com/glenkleidon/SSH.NET/tree/bugfix/ShellStream_stopping_event_on_chanell_close
It is pull request #1024
Sorry, something went wrong.
Closed
ShellStream
Successfully merging a pull request may close this issue.
Are you planning to add an event "Closed" in the class "ShellStream"?
Something like this:
public event EventHandler Closed;
public override void Close()
{
if (_channel != null)
_channel.Close();
base.Close();
}
private void Channel_Closed(object sender, ChannelEventArgs e)
{
if (Closed != null)
{
// Handle event on different thread
ExecuteThread(() => Closed(this, new EventArgs()));
}
}
instead of this:
private void Channel_Closed(object sender, ChannelEventArgs e)
{
// TODO: Do we need to call dispose here ??
Dispose();
}
The text was updated successfully, but these errors were encountered: