We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9607d8 commit eae25e1Copy full SHA for eae25e1
src/NServiceBus.Persistence.CosmosDB/Installer.cs
@@ -39,7 +39,12 @@ await clientProvider.Client.CreateDatabaseIfNotExistsAsync(installerSettings.Dat
39
40
var database = clientProvider.Client.GetDatabase(installerSettings.DatabaseName);
41
42
- var containerProperties = new ContainerProperties(installerSettings.ContainerName, installerSettings.PartitionKeyPath);
+ var containerProperties =
43
+ new ContainerProperties(installerSettings.ContainerName, installerSettings.PartitionKeyPath)
44
+ {
45
+ // in order for individual items TTL to work (example outbox records)
46
+ DefaultTimeToLive = -1
47
+ };
48
49
await database.CreateContainerIfNotExistsAsync(containerProperties)
50
.ConfigureAwait(false);
0 commit comments