Class EventDispatchItem
Namespace: Cephalon.Eventing.Services
Assembly: Cephalon.Eventing.dll
Describes one staged outbound event that is waiting for dispatch through the active eventing runtime.
public sealed class EventDispatchItemInheritance
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”EventDispatchItem(string, string, string, string, string, DateTimeOffset, DateTimeOffset, int, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)
Section titled “ EventDispatchItem(string, string, string, string, string, DateTimeOffset, DateTimeOffset, int, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)”Creates a new dispatch item.
public EventDispatchItem(string outboxId, string messageId, string channelId, string eventType, string payload, DateTimeOffset occurredAtUtc, DateTimeOffset createdAtUtc, int dispatchAttemptCount, string? contentType = null, string? correlationId = null, string? tenantId = null, IReadOnlyDictionary<string, string>? headers = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”outboxId string
The stable outbox identifier that owns the staged message.
messageId string
The stable outbound message identifier.
channelId string
The logical channel or destination identifier.
eventType string
The logical event type identifier.
payload string
The serialized payload that should be dispatched.
occurredAtUtc DateTimeOffset
The time at which the event became visible to the outbox.
createdAtUtc DateTimeOffset
The time at which the durable outbox row was created.
dispatchAttemptCount int
The number of dispatch attempts already recorded for this message.
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 associated with the dispatch item.
metadata IReadOnlyDictionary<string, string>?
Optional message metadata associated with the dispatch item.
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”CreatedAtUtc
Section titled “ CreatedAtUtc”Gets the time at which the durable outbox row was created.
public DateTimeOffset CreatedAtUtc { get; }Property Value
Section titled “Property Value”DispatchAttemptCount
Section titled “ DispatchAttemptCount”Gets the number of dispatch attempts already recorded for this message.
public int DispatchAttemptCount { get; }Property Value
Section titled “Property Value”EventType
Section titled “ EventType”Gets the logical event type identifier.
public string EventType { get; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”Gets optional message headers associated with the dispatch item.
public IReadOnlyDictionary<string, string> Headers { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
MessageId
Section titled “ MessageId”Gets the stable outbound message identifier.
public string MessageId { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional message metadata associated with the dispatch item.
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 event became visible to the outbox.
public DateTimeOffset OccurredAtUtc { get; }Property Value
Section titled “Property Value”OutboxId
Section titled “ OutboxId”Gets the stable outbox identifier that owns the staged message.
public string OutboxId { get; }Property Value
Section titled “Property Value”Payload
Section titled “ Payload”Gets the serialized payload that should be dispatched.
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; }