Table of Contents

Class CloudEventLoadResult

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

Represents the result of loading events from a cloud-native event store.

public sealed class CloudEventLoadResult
Inheritance
CloudEventLoadResult
Inherited Members

Constructors

CloudEventLoadResult(IReadOnlyList<CloudStoredEvent>, double, string?)

Initializes a new instance of the CloudEventLoadResult class.

public CloudEventLoadResult(IReadOnlyList<CloudStoredEvent> events, double requestCharge, string? sessionToken = null)

Parameters

events IReadOnlyList<CloudStoredEvent>
requestCharge double
sessionToken string

Properties

CurrentVersion

Gets the current version (version of the last event, or -1 if empty).

public long CurrentVersion { get; }

Property Value

long

Events

Gets the loaded events in version order.

public IReadOnlyList<CloudStoredEvent> Events { get; }

Property Value

IReadOnlyList<CloudStoredEvent>

RequestCharge

Gets the request charge (RUs for Cosmos DB, RCUs for DynamoDB).

public double RequestCharge { get; }

Property Value

double

SessionToken

Gets the session token for session consistency.

public string? SessionToken { get; }

Property Value

string