Skip to content

Class MongoDbEventEntry

Namespace: Cephalon.EventSourcing.MongoDB
Assembly: Cephalon.EventSourcing.MongoDB.dll

Represents one persisted domain event document stored by the MongoDB event-store provider.

public sealed class MongoDbEventEntry

objectMongoDbEventEntry

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

Gets or sets the UTC time at which the event was appended to the store.

public DateTime AppendedAtUtc { get; set; }

DateTime

Gets or sets the correlation identifier associated with the event when known.

public string? CorrelationId { get; set; }

string?

Gets or sets the assembly-qualified CLR event type.

public string EventType { get; set; }

string

Gets or sets the database-assigned document identifier.

[BsonId]
public ObjectId Id { get; set; }

ObjectId

Gets or sets the UTC time at which the domain event occurred.

public DateTime OccurredAtUtc { get; set; }

DateTime

Gets or sets the serialized event payload.

public string Payload { get; set; }

string

Gets or sets the stable logical stream identifier.

public string StreamId { get; set; }

string

Gets or sets the optimistic stream version for the event.

public long StreamVersion { get; set; }

long

Gets or sets the tenant identifier associated with the event when known.

public string? TenantId { get; set; }

string?