fitSharp.Slim.Service.Interpreter.ProcessInstructions C# (CSharp) Method

ProcessInstructions() public method

public ProcessInstructions ( ) : void
return void
        public void ProcessInstructions()
        {
            while (true) {
                var instruction = messenger.Read();
                if (messenger.IsEnd) break;
                var results = processor.RunTest(() => Execute(instruction));
                messenger.Write(results);
            }
        }

Usage Example

示例#1
0
 public static string ExecuteInstructions(string instructionString) {
     var testSocket = new TestSocket(string.Format("{0:000000}:{1}", instructionString.Length, instructionString));
     var messenger = new Messenger(testSocket);
     var interpreter = new Interpreter(messenger, string.Empty, Builder.Service());
     interpreter.ProcessInstructions();
     return testSocket.Output;
 }