public object Read(Message message)
        {
            var omsg = new OpaqueMessage
            {
                Label          = LabelReformat(ReadLabelReformatExpression, message),
                OpaqueBodyType = message.BodyType,
                Length         = Convert.ToInt32(message.BodyStream.Length)
            };

            omsg.OpaqueBody = new byte[omsg.Length];
            message.BodyStream.Read(omsg.OpaqueBody, 0, omsg.Length);
            return(omsg);
        }
Beispiel #2
0
 public OpaqueMessageReply(OpaqueMessage src)
 {
     RepliedUniqueIdentifier = src.UniqueIdentifier;
 }