SSHChannelClosed Event

Fired when a channel is closed.

Syntax

public event OnSSHChannelClosedHandler OnSSHChannelClosed;

public delegate void OnSSHChannelClosedHandler(object sender, SshreversetunnelSSHChannelClosedEventArgs e);

public class SshreversetunnelSSHChannelClosedEventArgs : EventArgs {
  public string ChannelId { get; }
}
Public Event OnSSHChannelClosed As OnSSHChannelClosedHandler

Public Delegate Sub OnSSHChannelClosedHandler(sender As Object, e As SshreversetunnelSSHChannelClosedEventArgs)

Public Class SshreversetunnelSSHChannelClosedEventArgs Inherits EventArgs
  Public ReadOnly Property ChannelId As String
End Class

Remarks

The SSHChannelClosed event is fired when a channel is closed on an SSH connection.

Note: Processing long-running requests, including sending channel data, inside this event may cause the underlying transport to stop processing SSH data until the event returns. In order to prevent this from happening, all requests should be processed asynchronously in a separate thread outside of this event.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 .NET Edition - Version 20.0 [Build 8501]