コード例 #1
0
        private bool executeAgainstTheSystem(RunInput input, SystemRecycled systemRecycled, EngineController controller)
        {
            if (!systemRecycled.success)
            {
                systemRecycled.WriteSystemUsage();
                return(false);
            }

            writeSystemUsage(systemRecycled);

            if (input.ValidateFlag)
            {
                return(validateOnly(input, systemRecycled));
            }


            var execution = input.StartBatch(controller);

            // TODO -- put a command level timeout on this thing
            execution.Wait();

            var results = execution.Result;

            if (input.VerboseFlag)
            {
                writeVerbose(results);
            }

            var success = determineSuccess(input, results);

            writeResults(input, systemRecycled, results);

            writeData(input, results);

            openResults(input);

            writeSuccessOrFailure(success);

            return(success);
        }
コード例 #2
0
 public void Receive(SystemRecycled message)
 {
     message.WriteSystemUsage();
     SendMessageToClient(message);
 }