Constructor As4Payload(string?, string, Stream, IReadOnlyDictionary<string, string>)

Assembly: redb.Route.As4.dll

One payload of an AS4 message.

On receipt: a message with a single payload — the common case — has it as the exchange body itself
(byte[], or a with streamBody=true) and its media type as
Message.ContentType; a message with several has a list of these as the body, for a route to
.Split(). With payloadList=true the body is always that list.


On sending: a body that is a list of these is sent as that many payloads, the eb:PartInfo elements in the
order of the list (the first is the leading business document); an empty list sends a message without payloads.

public As4Payload(string? ContentId, string ContentType, Stream Content, IReadOnlyDictionary<string, string> Properties)