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()); } }
public MsgBuilder(MsgPart header, MsgPart body) { Header = header; Body = body; }
public MsgBuilder() { Header = new MsgPart(); Body = new MsgPart(); }