public void Dispose()
 {
     bucket.Dispose();
     bucket = null;
     ClusterHelper.Close();
     GC.SuppressFinalize(this);
 }
Example #2
0
 private void Disconnect()
 {
     _cluster.CloseBucket(_bucket);
     _bucket.Dispose();
     _bucket = null;
     _cluster.Dispose();
     _cluster = null;
 }
Example #3
0
 public void Dispose()
 {
     bucket.Dispose();
     bucket = null;
     //Closes the DB connection
     ClusterHelper.Close();
     OrleansCouchBaseStorage.IsInitialized = false;
 }
Example #4
0
 public void Dispose()
 {
     if (bucket != null)
     {
         bucket.Dispose();
         bucket = null;
     }
 }
Example #5
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (Bucket != null)
         {
             Bucket.Dispose();
         }
     }
 }
        public void Dispose()
        {
            if (!string.IsNullOrEmpty(resourceId))
            {
                bucket.Remove(resourceId);
                resourceId = string.Empty;
                logger.Trace($"Lock released for {resource}");
            }

            bucket?.Dispose();
        }
Example #7
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            timer?.Dispose();

            lock (syncRoot)
            {
                if (!removedFromQueue && !reQueued)
                {
                    Requeue();
                }
            }

            bucket?.Dispose();
        }
Example #8
0
 public void Dispose()
 {
     _bucket.Dispose();
     ClusterHelper.Close();
 }
 public override void Dispose() => bucket?.Dispose();
 public void TearDown()
 {
     _bucket.Dispose();
     _cluster.Dispose();
 }
Example #11
0
 /// <summary>
 /// Dispose
 /// </summary>
 public void Dispose()
 {
     _bucket.Dispose();
 }
 private void FreeUpStuff()
 {
     bucket.Dispose();
     cluster.Dispose();
 }