Exemplo n.º 1
0
 private static void On(OpenCommand command)
 {
     int handle = fileSystem.Open(command.LogicalName);
     WriteSuccessLine(string.Format("file {0} opened, index={1}", command.LogicalName, handle));
 }
Exemplo n.º 2
0
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var op = (command = new OpenCommand()) as OpenCommand;
     return RequireLogicalName(args, 0, out op.LogicalName);
 }