Class As4Payload

Namespace: redb.Route.As4
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 sealed record As4Payload : IEquatable<As4Payload>

Inheritance

Object→As4Payload

Implements

Properties

Content

On receipt the decrypted, decompressed content: a readable, seekable stream, in memory or spooled to a temporary

public Stream Content { get; init; }

ContentId

Content-ID of the MIME part, without angle brackets. On receipt null for a payload carried in the SOAP body; on

public string? ContentId { get; init; }

ContentType

The original (uncompressed) media type: the MimeType part property.

public string ContentType { get; init; }

Properties

The eb:PartProperties, by name. On sending they are written next to MimeType and

public IReadOnlyDictionary<string, string> Properties { get; init; }

Constructors