Ejemplo n.º 1
0
        /// <summary>
        /// Ends a request
        /// </summary>
        /// <param name="request"><typeparamref name="Request"/> to end</param>
        protected virtual void EndRequest(Request request)
        {
            EndRequestMessageBody body = new EndRequestMessageBody(request.ExitCode, ProtocolStatus.RequestComplete);

            this.SendMessage(new Message(MessageType.StandardError, request.Id, ByteArray.Empty));
            this.SendMessage(new Message(MessageType.StandardOutput, request.Id, ByteArray.Empty));
            this.SendMessage(new Message(MessageType.EndRequest, request.Id, body.ToArray()));

            this.RemoveRequest(request);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Ends a request
        /// </summary>
        /// <param name="request"><typeparamref name="Request"/> to end</param>
        protected virtual void EndRequest(Request request)
        {
            EndRequestMessageBody body = new EndRequestMessageBody(request.ExitCode, ProtocolStatus.RequestComplete);

            this.SendMessage(new Message(MessageType.StandardError, request.Id, ByteArray.Empty));
            this.SendMessage(new Message(MessageType.StandardOutput, request.Id, ByteArray.Empty));
            this.SendMessage(new Message(MessageType.EndRequest, request.Id, body.ToArray()));

            this.RemoveRequest(request);
        }