Esempio n. 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;
 }
Esempio n. 2
0
 public ServerShell(
     IShellStatus status,
     FtpShellCommandAutoCompletion autoCompletionHandler)
 {
     _status = status;
     _autoCompletionHandler = autoCompletionHandler;
 }
Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 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;
 }
Esempio n. 7
0
 public HelpCommandHandler(
     [NotNull] IShellStatus status)
 {
     _status = status;
 }
Esempio n. 8
0
 public FileSystemAutoComplete(IShellStatus shellStatus)
 {
     _shellStatus = shellStatus;
     Refresh(true);
 }
Esempio n. 9
0
 public HelpCommandHandler(
     IShellStatus status)
 {
     _status = status;
 }