Class InboxMessage
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Describes one inbound message tracked by an inbox implementation for idempotency or replay control.
public sealed class InboxMessageInheritance
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”InboxMessage(string, string, string, string, DateTimeOffset, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)
Section titled “ InboxMessage(string, string, string, string, DateTimeOffset, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)”Creates a new inbox message.
public InboxMessage(string id, string channelId, string messageType, string payload, DateTimeOffset receivedAtUtc, 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 inbound message identifier.
channelId string
The logical channel or source identifier.
messageType string
The logical message type identifier.
payload string
The serialized payload that was received.
receivedAtUtc DateTimeOffset
The time at which the message was received.
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 source 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 inbound 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>
Payload
Section titled “ Payload”Gets the serialized payload that was received.
public string Payload { get; }Property Value
Section titled “Property Value”ReceivedAtUtc
Section titled “ ReceivedAtUtc”Gets the time at which the message was received.
public DateTimeOffset ReceivedAtUtc { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant identifier associated with the message.
public string? TenantId { get; }