Class CloudNativeOutboxStoreExtensions
- Namespace
- Excalibur.Data.CloudNative
- Assembly
- Excalibur.Data.Abstractions.dll
Extension methods for ICloudNativeOutboxStore.
public static class CloudNativeOutboxStoreExtensions
- Inheritance
-
CloudNativeOutboxStoreExtensions
- Inherited Members
Methods
AddBatchAsync(ICloudNativeOutboxStore, IEnumerable<CloudOutboxMessage>, IPartitionKey, CancellationToken)
Adds multiple messages in a transactional batch.
public static Task<CloudBatchResult> AddBatchAsync(this ICloudNativeOutboxStore store, IEnumerable<CloudOutboxMessage> messages, IPartitionKey partitionKey, CancellationToken cancellationToken)
Parameters
storeICloudNativeOutboxStoremessagesIEnumerable<CloudOutboxMessage>partitionKeyIPartitionKeycancellationTokenCancellationToken
Returns
CleanupOldMessagesAsync(ICloudNativeOutboxStore, IPartitionKey, TimeSpan, CancellationToken)
Deletes published messages older than the retention period.
public static Task<CloudCleanupResult> CleanupOldMessagesAsync(this ICloudNativeOutboxStore store, IPartitionKey partitionKey, TimeSpan retentionPeriod, CancellationToken cancellationToken)
Parameters
storeICloudNativeOutboxStorepartitionKeyIPartitionKeyretentionPeriodTimeSpancancellationTokenCancellationToken
Returns
IncrementRetryCountAsync(ICloudNativeOutboxStore, string, IPartitionKey, string?, CancellationToken)
Increments the retry count for a failed message.
public static Task<CloudOperationResult> IncrementRetryCountAsync(this ICloudNativeOutboxStore store, string messageId, IPartitionKey partitionKey, string? errorMessage, CancellationToken cancellationToken)
Parameters
storeICloudNativeOutboxStoremessageIdstringpartitionKeyIPartitionKeyerrorMessagestringcancellationTokenCancellationToken
Returns
MarkBatchAsPublishedAsync(ICloudNativeOutboxStore, IEnumerable<string>, IPartitionKey, CancellationToken)
Marks multiple messages as published in a batch.
public static Task<CloudBatchResult> MarkBatchAsPublishedAsync(this ICloudNativeOutboxStore store, IEnumerable<string> messageIds, IPartitionKey partitionKey, CancellationToken cancellationToken)
Parameters
storeICloudNativeOutboxStoremessageIdsIEnumerable<string>partitionKeyIPartitionKeycancellationTokenCancellationToken