protected internal override void Open(SshConnectionService connService) { if (_isDisposed) { throw new ObjectDisposedException(this.GetType().FullName); } _envVars = new Dictionary <string, string>(); _termModes = new List <TerminalMode>(); base.Open(connService); }
protected internal virtual void Open(SshConnectionService connService) { if (_isDisposed) { throw new ObjectDisposedException(this.GetType().FullName); } if (_open) { return; } _connService = connService; _open = true; // Raise event. OnOpened(new EventArgs()); }
protected override void Open(SshConnectionService connService) { if (_isDisposed) throw new ObjectDisposedException(this.GetType().FullName); // Create console handler. _consoleHandler = new ConsoleHandler("powershell"); _consoleHandler.ConsoleTitle = string.Format("{0} - channel {1}", connService.Client.Connection.ToString(), this.ServerChannel); _consoleHandler.InjectionDllFileName = SshWinConsoleChannel.InjectionDllFileName; _consoleHandler.ConsoleWindowResized += new EventHandler<EventArgs>( _consoleHandler_ConsoleWindowResized); _consoleHandler.ConsoleBufferResized += new EventHandler<EventArgs>( _consoleHandler_ConsoleBufferResized); _consoleHandler.ConsoleNewData += new EventHandler<EventArgs>(_consoleHandler_ConsoleNewData); _consoleHandler.ConsoleBufferChanged += new EventHandler<EventArgs>( _consoleHandler_ConnsoleBufferChanged); _consoleHandler.ConsoleCursorPositionChanged += new EventHandler<EventArgs>( _consoleHandler_ConsoleCursorPositionChanged); base.Open(connService); }
protected internal virtual void Open(SshConnectionService connService) { if (_isDisposed) throw new ObjectDisposedException(this.GetType().FullName); if (_open) return; _connService = connService; _open = true; // Raise event. OnOpened(new EventArgs()); }
protected internal override void Open(SshConnectionService connService) { if (_isDisposed) throw new ObjectDisposedException(this.GetType().FullName); _envVars = new Dictionary<string, string>(); _termModes = new List<TerminalMode>(); base.Open(connService); }