@@ -72,13 +72,15 @@ The following example sets the write concern to ``"majority"`` for an instance o
72
72
:start-after: start-write-concern-client
73
73
:end-before: end-write-concern-client
74
74
:language: csharp
75
+ :dedent:
75
76
76
77
The following example sets the write concern to ``"majority"`` for a collection:
77
78
78
79
.. literalinclude:: /includes/fundamentals/code-examples/ReplicaSetConfigs.cs
79
80
:start-after: start-write-concern-collection
80
81
:end-before: end-write-concern-collection
81
82
:language: csharp
83
+ :dedent:
82
84
83
85
.. note:: Collections and Databases are Immutable
84
86
@@ -134,6 +136,7 @@ The following example sets the read concern to ``"majority"`` for an instance of
134
136
:start-after: start-read-concern-client
135
137
:end-before: end-read-concern-client
136
138
:language: csharp
139
+ :dedent:
137
140
138
141
The following example sets the read concern to ``"majority"`` for a
139
142
collection:
@@ -142,6 +145,7 @@ collection:
142
145
:start-after: start-read-concern-collection
143
146
:end-before: end-read-concern-collection
144
147
:language: csharp
148
+ :dedent:
145
149
146
150
To learn more about read concern, see :manual:`Read Concern
147
151
<reference/read-concern>` in the {+mdb-server+} manual.
@@ -174,21 +178,23 @@ for an instance of ``MongoClient``:
174
178
:start-after: start-read-preference-client
175
179
:end-before: end-read-preference-client
176
180
:language: csharp
181
+ :dedent:
177
182
178
183
The following example sets the read preference to ``"secondary"`` for a collection:
179
184
180
185
.. literalinclude:: /includes/fundamentals/code-examples/ReplicaSetConfigs.cs
181
186
:start-after: start-read-preference-collection
182
187
:end-before: end-read-preference-collection
183
188
:language: csharp
189
+ :dedent:
184
190
185
191
For more information about read preference, see :manual:`Read Preference
186
192
</core/read-preference/>` in the {+mdb-server+} manual.
187
193
188
194
API Documentation
189
195
-----------------
190
196
191
- To learn more about any of the methods or types discussed in this
197
+ To learn more about any of the types discussed in this
192
198
guide, see the following API documentation:
193
199
194
200
- `MongoClientSettings <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.MongoClientSettings.html>`__
0 commit comments