Skip to content

Class OutboxMessage

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Describes one message staged for later delivery through an outbox implementation.

public sealed class OutboxMessage

objectOutboxMessage

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

OutboxMessage(string, string, string, string, DateTimeOffset, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)

Section titled “ OutboxMessage(string, string, string, string, DateTimeOffset, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)”

Creates a new outbox message.

public OutboxMessage(string id, string channelId, string messageType, string payload, DateTimeOffset occurredAtUtc, string? contentType = null, string? correlationId = null, string? tenantId = null, IReadOnlyDictionary<string, string>? headers = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable outbox message identifier.

channelId string

The logical channel or destination identifier.

messageType string

The logical message type identifier.

payload string

The serialized payload that should be delivered later.

occurredAtUtc DateTimeOffset

The time at which the message became visible to the outbox.

contentType string?

The payload content type when one is known.

correlationId string?

The correlation identifier associated with the message.

tenantId string?

The tenant identifier associated with the message.

headers IReadOnlyDictionary<string, string>?

Optional message headers.

metadata IReadOnlyDictionary<string, string>?

Optional message metadata.

Gets the logical channel or destination identifier.

public string ChannelId { get; }

string

Gets the payload content type when one is known.

public string? ContentType { get; }

string?

Gets the correlation identifier associated with the message.

public string? CorrelationId { get; }

string?

Gets message headers associated with the message.

public IReadOnlyDictionary<string, string> Headers { get; }

IReadOnlyDictionary<string, string>

Gets the stable outbox message identifier.

public string Id { get; }

string

Gets the logical message type identifier.

public string MessageType { get; }

string

Gets message metadata associated with the message.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the time at which the message became visible to the outbox.

public DateTimeOffset OccurredAtUtc { get; }

DateTimeOffset

Gets the serialized payload that should be delivered later.

public string Payload { get; }

string

Gets the tenant identifier associated with the message.

public string? TenantId { get; }

string?