SSHChannelOpened Event
Fired when a channel is successfully opened.
Syntax
public event OnSSHChannelOpenedHandler OnSSHChannelOpened; public delegate void OnSSHChannelOpenedHandler(object sender, SshclientSSHChannelOpenedEventArgs e); public class SshclientSSHChannelOpenedEventArgs : EventArgs { public string ChannelId { get; } }
Public Event OnSSHChannelOpened As OnSSHChannelOpenedHandler Public Delegate Sub OnSSHChannelOpenedHandler(sender As Object, e As SshclientSSHChannelOpenedEventArgs) Public Class SshclientSSHChannelOpenedEventArgs Inherits EventArgs Public ReadOnly Property ChannelId As String End Class
Remarks
The SSHChannelOpened event is fired when a channel is successfully opened 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.