Class OutboxMessage
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Describes one message staged for later delivery through an outbox implementation.
public sealed class OutboxMessageInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”ChannelId
Section titled “ ChannelId”Gets the logical channel or destination identifier.
public string ChannelId { get; }Property Value
Section titled “Property Value”ContentType
Section titled “ ContentType”Gets the payload content type when one is known.
public string? ContentType { get; }Property Value
Section titled “Property Value”CorrelationId
Section titled “ CorrelationId”Gets the correlation identifier associated with the message.
public string? CorrelationId { get; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”Gets message headers associated with the message.
public IReadOnlyDictionary<string, string> Headers { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Gets the stable outbox message identifier.
public string Id { get; }Property Value
Section titled “Property Value”MessageType
Section titled “ MessageType”Gets the logical message type identifier.
public string MessageType { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets message metadata associated with the message.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
OccurredAtUtc
Section titled “ OccurredAtUtc”Gets the time at which the message became visible to the outbox.
public DateTimeOffset OccurredAtUtc { get; }Property Value
Section titled “Property Value”Payload
Section titled “ Payload”Gets the serialized payload that should be delivered later.
public string Payload { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant identifier associated with the message.
public string? TenantId { get; }