Esempio n. 1
0
        private IEnumerable <Message> CreateEndRequestMessages(Request request)
        {
            yield return(new Message(MessageType.StandardError, request.Id, ByteArray.Empty));

            yield return(new Message(MessageType.StandardOutput, request.Id, ByteArray.Empty));

            var body = new EndRequestMessageBody(request.ExitCode, ProtocolStatus.RequestComplete);

            yield return(new Message(MessageType.EndRequest, request.Id, body.ToArray()));
        }
        private IEnumerable<Message> CreateEndRequestMessages(Request request)
        {
            yield return new Message(MessageType.StandardError, request.Id, ByteArray.Empty);
			yield return new Message(MessageType.StandardOutput, request.Id, ByteArray.Empty);

            var body = new EndRequestMessageBody(request.ExitCode, ProtocolStatus.RequestComplete);
			yield return new Message(MessageType.EndRequest, request.Id, body.ToArray());
        }