Interface ICloudNativePersistenceChangeFeed
- Namespace
- Excalibur.Data.CloudNative
- Assembly
- Excalibur.Data.Abstractions.dll
Provides change feed subscription capabilities and advanced capability flags for cloud-native document databases. Obtain via GetService(Type) on an ICloudNativePersistenceProvider instance.
public interface ICloudNativePersistenceChangeFeed
Properties
SupportsChangeFeed
Gets a value indicating whether the provider supports change feed.
bool SupportsChangeFeed { get; }
Property Value
SupportsMultiRegionWrites
Gets a value indicating whether the provider supports multi-region writes.
bool SupportsMultiRegionWrites { get; }
Property Value
Methods
CreateChangeFeedSubscriptionAsync<TDocument>(string, IChangeFeedOptions?, CancellationToken)
Creates a change feed subscription for real-time updates.
Task<IChangeFeedSubscription<TDocument>> CreateChangeFeedSubscriptionAsync<TDocument>(string containerName, IChangeFeedOptions? options, CancellationToken cancellationToken) where TDocument : class
Parameters
containerNamestringThe container or collection name.
optionsIChangeFeedOptionsChange feed options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IChangeFeedSubscription<TDocument>>
A change feed subscription.
Type Parameters
TDocumentThe document type.