Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
sdk-3.1
-
DOC-2021-May09-S9, DOC-2021-May23-S10, DOC-2021-Jun06-S11, DOC-2021-Jun20-S12, DOC-2021-Jul04-S13
-
1
Description
On .net CB SDK, I upgraded from 3.0.6 to 3.1.1, and it now emits warning messages when trying to use bucket.DefaultCollection() or bucket.Collection("_default")...
Program.cs(16,24): warning CS0618: 'IBucket.Collection(string)' is obsolete: 'Use asynchronous equivalent instead.' [/opt/couchbase/var/tmp/play/project.csproj]
|
Instead, the docs should say...
var scope = await bucket.ScopeAsync("_default");
|
var collection = await scope.CollectionAsync("_default");
|
Also, I was not able to find any API reference docs on the ScopeAsync() and CollectionAsync() methods, but just made a lucky guess at them.