Class OutboxMessage
Encapsulates the information to be stored in the outbox to be able to replay the message at a later time.
Inherited Members
Namespace: Silverback.Messaging.Producing.TransactionalOutbox
Assembly: Silverback.Integration.dll
Syntax
public class OutboxMessage
Constructors
OutboxMessage(byte[]?, IEnumerable<MessageHeader>?, string)
Initializes a new instance of the OutboxMessage class.
Declaration
public OutboxMessage(byte[]? content, IEnumerable<MessageHeader>? headers, string endpointName)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | content | The message raw binary content (body). |
| IEnumerable<MessageHeader> | headers | The message headers. |
| string | endpointName | The endpoint name. |
Properties
Content
Gets the message raw binary content (body).
Declaration
public byte[]? Content { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
EndpointName
Gets the destination endpoint name.
Declaration
public string EndpointName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Headers
Gets the message headers.
Declaration
public IReadOnlyCollection<MessageHeader>? Headers { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<MessageHeader> |