コード例 #1
0
 //---------------------------------------------------------------------
 public override void Settings(Commands.SettingsCommand Command)
 {
     Command.out_Settings.Add("TypeName", "UnixShell");
     Command.out_Settings.Add("ProtocolName", this._ShellAdapter.ProtocolName);
     Command.out_Settings.Add("Host", this._ShellAdapter.Host);
     Command.out_Settings.Add("User", this._ShellAdapter.User);
     Command.out_Settings.Add("Port", this._ShellAdapter.Port);
     Command.out_Settings.Add("Root", this._ShellAdapter.Root);
     return;
 }
コード例 #2
0
 //---------------------------------------------------------------------
 public override void Settings(Commands.SettingsCommand Command)
 {
     Command.out_Settings.Add("TypeName", "LocalFileSystem");
     Command.out_Settings.Add("ProtocolName", "file");
     Command.out_Settings.Add("Host", "localhost");
     Command.out_Settings.Add("User", "");
     Command.out_Settings.Add("Port", "");
     Command.out_Settings.Add("Root", this._Root);
     return;
 }
コード例 #3
0
 //---------------------------------------------------------------------
 public void Invoke(CommandContext Command)
 {
     if (Command == null)
     {
     }
     else if (Command is Commands.SettingsCommand)
     {
         Commands.SettingsCommand SettingsCommand = (Commands.SettingsCommand)Command;
         this.Settings(SettingsCommand);
     }
     else if (Command is Commands.ListEntriesCommand)
     {
         Commands.ListEntriesCommand ListCommand = (Commands.ListEntriesCommand)Command;
         this.List(ListCommand);
     }
     else if (Command is Commands.CreateItemCommand)
     {
         Commands.CreateItemCommand CreateCommand = (Commands.CreateItemCommand)Command;
         this.Create(CreateCommand);
     }
     else if (Command is Commands.ReadItemCommand)
     {
         Commands.ReadItemCommand ReadCommand = (Commands.ReadItemCommand)Command;
         this.Read(ReadCommand);
     }
     else if (Command is Commands.UpdateItemCommand)
     {
         Commands.UpdateItemCommand UpdateCommand = (Commands.UpdateItemCommand)Command;
         this.Update(UpdateCommand);
     }
     else if (Command is Commands.DeleteItemCommand)
     {
         Commands.DeleteItemCommand DeleteCommand = (Commands.DeleteItemCommand)Command;
         this.Delete(DeleteCommand);
     }
     else if (Command is Commands.ReadFileContentCommand)
     {
         Commands.ReadFileContentCommand ReadContentCommand = (Commands.ReadFileContentCommand)Command;
         this.ReadFileContent(ReadContentCommand);
     }
     else if (Command is Commands.WriteFileContentCommand)
     {
         Commands.WriteFileContentCommand WriteContentCommand = (Commands.WriteFileContentCommand)Command;
         this.WriteFileContent(WriteContentCommand);
     }
     else
     {
     }
     return;
 }
コード例 #4
0
 //---------------------------------------------------------------------
 public abstract void Settings(Commands.SettingsCommand Command);
コード例 #5
0
 //---------------------------------------------------------------------
 public Hashtable Settings()
 {
     Commands.SettingsCommand SettingsCommand = new Commands.SettingsCommand();
     this.Settings(SettingsCommand);
     return(SettingsCommand.out_Settings);
 }
コード例 #6
0
 //---------------------------------------------------------------------
 public override void Settings(Commands.SettingsCommand Command)
 {
     Command.out_Settings.Add("TypeName", "BlockStreamFileSystem");
     return;
 }