Class EventPublicationRequest
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Describes one host-agnostic request to publish an integration event through the active eventing runtime.
public sealed class EventPublicationRequestInheritance
Section titled “Inheritance”object ← EventPublicationRequest
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”EventPublicationRequest(string, string, string, string?, DateTimeOffset?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)
Section titled “ EventPublicationRequest(string, string, string, string?, DateTimeOffset?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?)”Creates an event-publication request.
public EventPublicationRequest(string channelId, string eventType, string payload, string? id = null, DateTimeOffset? occurredAtUtc = null, string? contentType = null, string? correlationId = null, string? tenantId = null, IReadOnlyDictionary<string, string>? headers = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”channelId string
The logical channel or destination identifier.
eventType string
The logical event type identifier.
payload string
The serialized event payload.
id string?
The stable publication identifier. A generated identifier is used when omitted.
occurredAtUtc DateTimeOffset?
The time at which the event occurred. The current UTC time is used when omitted.
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 operator-facing event metadata.
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 event.
public string? CorrelationId { 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 event headers associated with the publication.
public IReadOnlyDictionary<string, string> Headers { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Gets the stable publication identifier.
public string Id { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional operator-facing event metadata.
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 occurred.
public DateTimeOffset OccurredAtUtc { get; }Property Value
Section titled “Property Value”Payload
Section titled “ Payload”Gets the serialized event payload.
public string Payload { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant identifier associated with the event.
public string? TenantId { get; }