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

Class EventPublication

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Eventing.Services
Assembly: Cephalon.Eventing.dll

Describes one integration event publication request handled by the active eventing runtime.

public sealed class EventPublication

objectEventPublication

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

EventPublication(string, string, string, string, DateTimeOffset, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)

Section titled “ EventPublication(string, string, string, string, DateTimeOffset, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)”

Creates a new event publication request.

public EventPublication(string id, string channelId, string eventType, string payload, DateTimeOffset occurredAtUtc, string? contentType = null, string? correlationId = null, string? tenantId = null, IReadOnlyDictionary<string, string>? headers = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable publication identifier.

channelId string

The logical channel or destination identifier.

eventType string

The logical event type identifier.

payload string

The serialized event payload.

occurredAtUtc DateTimeOffset

The time at which the event occurred.

contentType string?

The payload content type when one is known.

correlationId string?

The correlation identifier associated with the event.

tenantId string?

The tenant identifier associated with the event.

headers IReadOnlyDictionary<string, string>?

Optional event headers.

metadata IReadOnlyDictionary<string, string>?

Optional event metadata.

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 event.

public string? CorrelationId { get; }

string?

Gets the logical event type identifier.

public string EventType { get; }

string

Gets the event headers associated with the publication.

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

IReadOnlyDictionary<string, string>

Gets the stable publication identifier.

public string Id { get; }

string

Gets the event metadata associated with the publication.

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

IReadOnlyDictionary<string, string>

Gets the time at which the event occurred.

public DateTimeOffset OccurredAtUtc { get; }

DateTimeOffset

Gets the serialized event payload.

public string Payload { get; }

string

Gets the tenant identifier associated with the event.

public string? TenantId { get; }

string?