Struct MessageTiming
Focused value type grouping the temporal metadata for a message.
public readonly record struct MessageTiming : IEquatable<MessageTiming>
- Implements
- Inherited Members
- Extension Methods
Remarks
Composed onto MessageMetadata alongside the core CreatedTimestampUtc which remains on the root for the IMessageMetadata contract. Carries the sent/received/scheduled timestamps, time-to-live and expiration fields. Holds at most ten properties to satisfy the Microsoft-first focused-value-type design guideline.
Properties
ExpiresAtUtc
Gets the UTC timestamp when the message expires.
public DateTimeOffset? ExpiresAtUtc { get; init; }
Property Value
- DateTimeOffset?
The expiration timestamp or null.
ReceivedTimestampUtc
Gets the UTC timestamp when the message was received.
public DateTimeOffset? ReceivedTimestampUtc { get; init; }
Property Value
- DateTimeOffset?
The received timestamp or null.
ScheduledEnqueueTimeUtc
Gets the UTC timestamp when the message is scheduled to be enqueued.
public DateTimeOffset? ScheduledEnqueueTimeUtc { get; init; }
Property Value
- DateTimeOffset?
The scheduled enqueue timestamp or null.
SentTimestampUtc
Gets the UTC timestamp when the message was sent.
public DateTimeOffset? SentTimestampUtc { get; init; }
Property Value
- DateTimeOffset?
The sent timestamp or null.
TimeToLive
Gets the time-to-live duration for the message.
public TimeSpan? TimeToLive { get; init; }