Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StopCommandHandler"/> class.
 /// </summary>
 /// <param name="client">The client to be used to communicate with the FTP server.</param>
 /// <param name="status">The shell status.</param>
 public StopCommandHandler(
     [NotNull] IpcServiceClient <Api.IFtpServerHost> client,
     [NotNull] IShellStatus status)
 {
     _client = client;
     _status = status;
 }
Beispiel #2
0
 public ServerShell(
     IShellStatus status,
     FtpShellCommandAutoCompletion autoCompletionHandler)
 {
     _status = status;
     _autoCompletionHandler = autoCompletionHandler;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowCommandHandler"/> class.
 /// </summary>
 /// <param name="client">The client to be used to communicate with the FTP server.</param>
 /// <param name="status">The status of the shell.</param>
 public ShowCommandHandler(
     IpcServiceClient <IFtpServerHost> client,
     IShellStatus status)
 {
     SubCommands = status.ExtendedModuleInfoName
                   .Select(x => new ModuleCommandInfo(client, x))
                   .ToList();
 }
Beispiel #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CommanderTextBox"/> class.
        /// </summary>
        /// <param name="prompt">The prompt.</param>
        /// <param name="shellStatus">The shell status ref</param>
        public CommanderTextBox(string prompt, IShellStatus shellStatus)
        {
            _prompt												= prompt;
            ShellStatus											= shellStatus;
            WordWrap											= false;
            AcceptsTab											= false;
            ScrollBars											= RichTextBoxScrollBars.ForcedVertical;
            RichTextShortcutsEnabled							= false;

            _fsAutoComplete										= new FileSystemAutoComplete(ShellStatus);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowCommandHandler"/> class.
 /// </summary>
 /// <param name="client">The client to be used to communicate with the FTP server.</param>
 /// <param name="status">The status of the shell.</param>
 public ShowCommandHandler(
     IpcServiceClient <IFtpServerHost> client,
     IShellStatus status)
 {
     _subCommands = status.ExtendedModuleInfoName
                    .Select(x => new ModuleCommandInfo(client, x))
                    .Concat(
         new ICommandInfo[]
     {
         new ShowConnectionsCommandInfo(client),
     })
                    .ToList()
                    .ToAsyncEnumerable();
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IExecutableCommandInfo"/> class.
 /// </summary>
 /// <param name="status">The shell status.</param>
 public ExitCommandHandler(IShellStatus status)
 {
     _status = status;
 }
 public HelpCommandHandler(
     [NotNull] IShellStatus status)
 {
     _status = status;
 }
 public FileSystemAutoComplete(IShellStatus shellStatus)
 {
     _shellStatus = shellStatus;
     Refresh(true);
 }
Beispiel #9
0
 public HelpCommandHandler(
     IShellStatus status)
 {
     _status = status;
 }