Table of Contents

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

bool

SupportsMultiRegionWrites

Gets a value indicating whether the provider supports multi-region writes.

bool SupportsMultiRegionWrites { get; }

Property Value

bool

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

containerName string

The container or collection name.

options IChangeFeedOptions

Change feed options.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IChangeFeedSubscription<TDocument>>

A change feed subscription.

Type Parameters

TDocument

The document type.