Example #1
0
 private static void On(CloseCommand command)
 {
     fileSystem.Close(command.FileHandle);
     WriteSuccessLine(string.Format("file {0} closed", command.FileHandle));
 }
Example #2
0
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var cl = (command = new CloseCommand()) as CloseCommand;
     return RequireFileHandle(args, 0, out cl.FileHandle);
 }