Пример #1
0
        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"]);
            });
        }
Пример #2
0
 public TravelRepository(ITravelBucketProvider provider, IConfiguration config)
 {
     _couchConfig = config.GetSection("Couchbase");
     _provider    = provider;
 }