All:
I’m just getting started with Couchbase. I believe it will work well with a new project, if I can get over some initial hurdles.
I have Couchbase server 6.6.x Community running on my Linode (Ubuntu 18.04) and have no problem accessing the web console. I added the travel-sample bucket for testing
I am following the Couchbase Install and Start tutorial. I created a .NET Core console application and added CouchbaseNetClient and Couchbase.ExtensionsDependencyInjection NuGet packages.
Here is my code so far:
using System;
using System.Diagnostics;
using System.Runtime.InteropServices.ComTypes;
using Couchbase;
using Couchbase.Extensions;
namespace CouchbaseTest01
{
class Program
{
static void Main(string[] args)
{
Connect();
}
static async void Connect()
{
var cluster = Cluster.ConnectAsync("http://myCouchbaseHostIP","cbTestUser","myPassword"); // connects ok
//Here the tutorial shows
//var bucket = await cluster.BucketAsync("bucket-name") //
}
}
}
Problem is when I type var bucket=await cluster. there is no method called BucketAsync();
What am I doing wrong?
TIA for your help.
Norm