Exemple #1
0
        private static MessagePart GetMessagePart(byte[] rawMessageContent)
        {
            MessageHeader headers;

            byte[] body;
            HeaderExtractor.ExtractHeadersAndBody(rawMessageContent, out headers, out body);
            return(new MessagePart(body, headers));
        }
Exemple #2
0
        public PopMessage(byte[] rawMessageContent, bool getBody)
        {
            this.RawMessage = rawMessageContent;
            MessageHeader headersTemp;

            byte[] body;
            HeaderExtractor.ExtractHeadersAndBody(rawMessageContent, out headersTemp, out body);
            this.Headers = headersTemp;
            if (getBody)
            {
                this.MessagePart = new MessagePart(body, this.Headers);
            }
        }