Skip to content

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 EventDispatchItem

objectEventDispatchItem

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

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)

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.

Gets the logical channel or destination 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 the time at which the durable outbox row was created.

public DateTimeOffset CreatedAtUtc { get; }

DateTimeOffset

Gets the number of dispatch attempts already recorded for this message.

public int DispatchAttemptCount { get; }

int

Gets the logical event type identifier.

public string EventType { get; }

string

Gets optional message headers associated with the dispatch item.

public IReadOnlyDictionary<string, string> Headers { get; }

IReadOnlyDictionary<string, string>

Gets the stable outbound message identifier.

public string MessageId { get; }

string

Gets optional message metadata associated with the dispatch item.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the time at which the event became visible to the outbox.

public DateTimeOffset OccurredAtUtc { get; }

DateTimeOffset

Gets the stable outbox identifier that owns the staged message.

public string OutboxId { get; }

string

Gets the serialized payload that should be dispatched.

public string Payload { get; }

string

Gets the tenant identifier associated with the message.

public string? TenantId { get; }

string?