Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
https://developer.couchbase.com/documentation/server/current/sdk/dotnet/start-using-sdk.html
The example near the bottom of how to use a bucket wraps the bucket in a using statement. That's is a big no-no as it will tear down the connection when disposed. Having this usage pattern here caused confusion for devs in my organization and led to problems in production. Please revise this example to not use a using statement. Additional info on how the bucket object is disposed and when it should be disposed would be extremely helpful.
Reporter: Nathan
E-mail: njohnson@netdocuments.com