ข้ามไปยังเนื้อหา

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 InboxMessage

objectInboxMessage

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

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)

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.

Gets the logical channel or source 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 inbound 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 serialized payload that was received.

public string Payload { get; }

string

Gets the time at which the message was received.

public DateTimeOffset ReceivedAtUtc { get; }

DateTimeOffset

Gets the tenant identifier associated with the message.

public string? TenantId { get; }

string?