Skip to content

Class NatsEventEntry

Namespace: Cephalon.EventSourcing.Nats
Assembly: Cephalon.EventSourcing.Nats.dll

Plain-object representation of a single event stored in a NATS JetStream KV entry.

public sealed class NatsEventEntry

objectNatsEventEntry

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

UTC timestamp when the event was appended to the store.

public DateTime AppendedAtUtc { get; init; }

DateTime

The assembly-qualified CLR type name of the serialized event.

public string EventType { get; init; }

string

UTC timestamp when the domain event occurred.

public DateTime OccurredAtUtc { get; init; }

DateTime

The JSON-serialized event payload.

public string Payload { get; init; }

string

The stream identifier this event belongs to.

public string StreamId { get; init; }

string

The monotonically increasing version of this event within its stream.

public long StreamVersion { get; init; }

long