Skip to content

Commit 938f9f1

Browse files
committed
Just inline the code
1 parent 36eea78 commit 938f9f1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

persistence/upgrades/mongodb-5to6.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ component: mongodb
66
related:
77
- persistence/mongodb
88
isUpgradeGuide: true
9+
upgradeGuideCoreVersions:
10+
- 9
911
---
1012

1113
## Minimum required client version
@@ -16,7 +18,10 @@ The minimum required MongoDB client version has been raised to [3.4.3](https://w
1618

1719
The `TimeToKeepOutboxDeduplicationData` method has been moved to the outbox settings:
1820

19-
snippet: MongoDBOutboxCleanup
21+
```csharp
22+
var outbox = endpointConfiguration.EnableOutbox();
23+
outbox.TimeToKeepOutboxDeduplicationData(TimeSpan.FromDays(30));
24+
```
2025

2126
## Installer support
2227

@@ -26,7 +31,10 @@ This enables the possibility to take full control over the index creation by lev
2631

2732
When installers are disabled, or when installers are enabled but the persistence installers are disabled with:
2833

29-
snippet: MongoDBDisableInstaller
34+
```csharp
35+
var persistence = endpointConfiguration.UsePersistence<MongoPersistence>();
36+
persistence.DisableInstaller();
37+
```
3038

3139
the persistence assumes that all required infrastructure (including indexes) is already in place. If the necessary indexes are missing, system performance and reliability may be affected.
3240

0 commit comments

Comments
 (0)