Table of Contents

Interface IChangeFeedEvent<TDocument>

Namespace
Excalibur.Data.CloudNative
Assembly
Excalibur.Data.Abstractions.dll

Represents a change in a cloud-native document database.

public interface IChangeFeedEvent<out TDocument>

Type Parameters

TDocument

The type of the document that changed.

Properties

ContinuationToken

Gets the continuation token for resuming the feed from this point.

string ContinuationToken { get; }

Property Value

string

Document

Gets the document after the change (null for deletes).

TDocument? Document { get; }

Property Value

TDocument

DocumentId

Gets the document ID.

string DocumentId { get; }

Property Value

string

EventType

Gets the type of change that occurred.

ChangeFeedEventType EventType { get; }

Property Value

ChangeFeedEventType

PartitionKey

Gets the partition key of the document.

IPartitionKey PartitionKey { get; }

Property Value

IPartitionKey

SequenceNumber

Gets the sequence number or version of this change.

long SequenceNumber { get; }

Property Value

long

Timestamp

Gets the timestamp when the change occurred.

DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset