Exemple #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;
 }
Exemple #2
0
 public ServerShell(
     IShellStatus status,
     FtpShellCommandAutoCompletion autoCompletionHandler)
 {
     _status = status;
     _autoCompletionHandler = autoCompletionHandler;
 }
Exemple #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();
 }
Exemple #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();
 }
Exemple #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);
 }
Exemple #9
0
 public HelpCommandHandler(
     IShellStatus status)
 {
     _status = status;
 }