Renci.SshNet.Shell.Stop C# (CSharp) Method

Stop() public method

Stops this shell.
Shell is not started.
public Stop ( ) : void
return void
        public void Stop()
        {
            if (!IsStarted)
            {
                throw new SshException("Shell is not started.");
            }

            if (_channel != null)
            {
                _channel.Dispose();
            }
        }

Usage Example

コード例 #1
0
ファイル: SshShell.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Stops this shell.
 /// </summary>
 public void Stop()
 {
     _sshShell.Stop();
 }