Path: redb-route/redb.Route.As4/As4Payload.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.As4/As4Payload.cs ---- namespace redb.Route.As4; /// /// 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. /// /// /// /// Content-ID of the MIME part, without angle brackets. On receipt null for a payload carried in the SOAP body; on /// sending null lets the connector generate one. /// /// The original (uncompressed) media type: the MimeType part property. /// /// On receipt the decrypted, decompressed content: a readable, seekable stream, in memory or spooled to a temporary /// file when large. The exchange owns it and closes it when it ends (ExchangeResources.ReleaseWithExchange); read it within /// the route, not after. On sending it is copied and left open; a seekable one is read from its start. /// /// /// The eb:PartProperties, by name. On sending they are written next to MimeType and /// CompressionType, which the connector sets itself: CharacterSet for an XML payload, for one. /// public sealed record As4Payload(string? ContentId, string ContentType, Stream Content, IReadOnlyDictionary Properties);