Skip to content

Class ElasticsearchEventEntry

Namespace: Cephalon.EventSourcing.Elasticsearch
Assembly: Cephalon.EventSourcing.Elasticsearch.dll

Elasticsearch document mapping for an event stream entry.

public sealed class ElasticsearchEventEntry

objectElasticsearchEventEntry

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

Gets or sets the UTC timestamp when the event was appended to the store.

[JsonPropertyName("appended_at_utc")]
public DateTime AppendedAtUtc { get; set; }

DateTime

Gets or sets an optional causality tracking identifier.

[JsonPropertyName("correlation_id")]
public string? CorrelationId { get; set; }

string?

Gets or sets the fully-qualified CLR event type name.

[JsonPropertyName("event_type")]
public string EventType { get; set; }

string

Gets or sets the UTC timestamp when the domain event occurred.

[JsonPropertyName("occurred_at_utc")]
public DateTime OccurredAtUtc { get; set; }

DateTime

Gets or sets the JSON-serialized event payload.

[JsonPropertyName("payload")]
public string Payload { get; set; }

string

Gets or sets the logical stream identifier.

[JsonPropertyName("stream_id")]
public string StreamId { get; set; }

string

Gets or sets the per-stream monotonic version number.

[JsonPropertyName("stream_version")]
public long StreamVersion { get; set; }

long

Gets or sets an optional tenant identifier for multi-tenancy.

[JsonPropertyName("tenant_id")]
public string? TenantId { get; set; }

string?