public TravelLinqRepository(ITravelBucketProvider provider, IConfiguration config) { _provider = provider; var couchConfig = config.GetSection("Couchbase"); Task.Run(async() => { var cluster = await Cluster.ConnectAsync(couchConfig["ConnectionString"], couchConfig["Username"], couchConfig["Password"]); }); }
public TravelRepository(ITravelBucketProvider provider, IConfiguration config) { _couchConfig = config.GetSection("Couchbase"); _provider = provider; }