You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,7 +21,7 @@ Notable new features are listed below. For a full list, see the full list of JIR
21
21
### Async
22
22
23
23
As has been requested for a while now, the driver now offers a full async stack. Since it uses Tasks, it is fully usable
24
-
with async and await.
24
+
with async and await.
25
25
26
26
While we offer a mostly backwards-compatible sync API, it is calling into the async stack underneath. Until you are ready
27
27
to move to async, you should measure against the 1.x versions to ensure performance regressions don't enter your codebase.
@@ -31,7 +31,7 @@ All new applications should utilize the New API.
31
31
32
32
### New API
33
33
34
-
Because of our async nature, we have rebuilt our entire API. The new API is accessible via MongoClient.GetDatabase.
34
+
Because of our async nature, we have rebuilt our entire API. The new API is accessible via MongoClient.GetDatabase.
35
35
36
36
- Interfaces are used (`IMongoClient`, `IMongoDatabase`, `IMongoCollection<TDocument>`) to support easier testing.
37
37
@@ -94,7 +94,7 @@ As 2.0 is a major revision, there are some breaking changes when coming from the
94
94
-[CSHARP-979](https://jira.mongodb.org/browse/CSHARP-979): `MongoConnectionStringBuilder` has been removed. Use the documented mongodb connection string format and/or `MongoUrlBuilder`.
95
95
-`MongoServer` is a deprecated class. Anyone using `MongoClient.GetServer()` will encounter a deprecation warning and, depending on how your build is setup, may receive an error. It is still safe to use this API until your code is ported to the new API. *Note that this API requires the use of the [mongocsharpdriver](http://nuget.org/packages/mongocsharpdriver) to include the legacy API.
96
96
-[CSHARP-1043](https://jira.mongodb.org/browse/CSHARP-1043) and [CSHARP-1044](https://jira.mongodb.org/browse/CSHARP-1044): `ReadPreference` and `WriteConcern` were rewritten. These classes are now immutable. Any current application code that sets values on these classes will no longer function. Instead, you should use the With method to alter a `ReadPreference` or `WriteConcern`.
97
-
97
+
98
98
``` csharp
99
99
var writeConcern = myCurrentWriteConcern.With(journal: true);
0 commit comments