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
eventsIReadOnlyList<CloudStoredEvent>requestChargedoublesessionTokenstring
Properties
CurrentVersion
Gets the current version (version of the last event, or -1 if empty).
public long CurrentVersion { get; }
Property Value
Events
Gets the loaded events in version order.
public IReadOnlyList<CloudStoredEvent> Events { get; }
Property Value
RequestCharge
Gets the request charge (RUs for Cosmos DB, RCUs for DynamoDB).
public double RequestCharge { get; }
Property Value
SessionToken
Gets the session token for session consistency.
public string? SessionToken { get; }