public CouchbaseConnection(CouchbaseStorage storage)
        {
            Storage        = storage;
            QueueProviders = storage.QueueProviders;

            bucket = storage.Client.OpenBucket(storage.Options.DefaultBucket);
        }
Example #2
0
        public CouchbaseWriteOnlyTransaction(CouchbaseConnection connection)
        {
            this.connection = connection;
            CouchbaseStorage storage = connection.Storage;

            bucket = storage.Client.OpenBucket(storage.Options.DefaultBucket);
        }
 public CouchbaseDistributedLock(string resource, TimeSpan timeout, CouchbaseStorage storage)
 {
     this.resource = resource;
     bucket        = storage.Client.OpenBucket(storage.Options.DefaultBucket);
     Acquire(timeout);
 }
 public CouchbaseMonitoringApi(CouchbaseStorage storage) => this.storage = storage;
 public CountersAggregator(CouchbaseStorage storage)
 {
     this.storage       = storage ?? throw new ArgumentNullException(nameof(storage));
     defaultLockTimeout = TimeSpan.FromSeconds(30) + storage.Options.CountersAggregateInterval;
 }
Example #6
0
 public ExpirationManager(CouchbaseStorage storage)
 {
     this.storage       = storage ?? throw new ArgumentNullException(nameof(storage));
     defaultLockTimeout = TimeSpan.FromSeconds(15) + storage.Options.ExpirationCheckInterval;
 }