Interface ICloudNativeEventStoreInfo
- Namespace
- Excalibur.Data.CloudNative
- Assembly
- Excalibur.Data.Abstractions.dll
Provides version query capabilities for cloud-native event stores without loading events. Obtain via GetService(Type) on an event store instance.
public interface ICloudNativeEventStoreInfo
Methods
GetCurrentVersionAsync(string, string, IPartitionKey, CancellationToken)
Gets the current aggregate version without loading events.
Task<long> GetCurrentVersionAsync(string aggregateId, string aggregateType, IPartitionKey partitionKey, CancellationToken cancellationToken)
Parameters
aggregateIdstringThe aggregate identifier. Must not be null, empty, or white space.
aggregateTypestringThe aggregate type name. Must not be null, empty, or white space.
partitionKeyIPartitionKeyThe partition key containing the aggregate.
cancellationTokenCancellationTokenCancellation token.
Returns
Exceptions
- ArgumentException
aggregateIdoraggregateTypeis empty or white space.- ArgumentNullException
aggregateId,aggregateType, orpartitionKeyis null.