Table of Contents

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

store ICloudNativeOutboxStore
messages IEnumerable<CloudOutboxMessage>
partitionKey IPartitionKey
cancellationToken CancellationToken

Returns

Task<CloudBatchResult>

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

store ICloudNativeOutboxStore
partitionKey IPartitionKey
retentionPeriod TimeSpan
cancellationToken CancellationToken

Returns

Task<CloudCleanupResult>

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

store ICloudNativeOutboxStore
messageId string
partitionKey IPartitionKey
errorMessage string
cancellationToken CancellationToken

Returns

Task<CloudOperationResult>

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

store ICloudNativeOutboxStore
messageIds IEnumerable<string>
partitionKey IPartitionKey
cancellationToken CancellationToken

Returns

Task<CloudBatchResult>