Ejemplo n.º 1
0
 private static void On(SeekCommand command)
 {
     fileSystem.Seek(command.FileHandle, command.Position);
     WriteSuccessLine(string.Format("current position is {0}", command.Position));
 }
Ejemplo n.º 2
0
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var sk = (command = new SeekCommand()) as SeekCommand;
     return RequireFileHandle(args, 0, out sk.FileHandle)
         && RequirePosition(args, 1, out sk.Position);
 }