Exemple #1
0
        public MsgBuilder(INngMsg message)
        {
            var headerSpan = message.Header.AsSpan();

            if (headerSpan.Length > 0)
            {
                Header = new MsgPart(headerSpan.ToArray());
            }
            var bodySpan = message.AsSpan();

            if (bodySpan.Length > 0)
            {
                Body = new MsgPart(bodySpan.ToArray());
            }
        }
Exemple #2
0
 public MsgBuilder(MsgPart header, MsgPart body)
 {
     Header = header;
     Body   = body;
 }
Exemple #3
0
 public MsgBuilder()
 {
     Header = new MsgPart();
     Body   = new MsgPart();
 }