public void Dispose()
 {
     bucket.Dispose();
     bucket = null;
     ClusterHelper.Close();
     GC.SuppressFinalize(this);
 }
Пример #2
0
 private void Disconnect()
 {
     _cluster.CloseBucket(_bucket);
     _bucket.Dispose();
     _bucket = null;
     _cluster.Dispose();
     _cluster = null;
 }
Пример #3
0
 public void Dispose()
 {
     bucket.Dispose();
     bucket = null;
     //Closes the DB connection
     ClusterHelper.Close();
     OrleansCouchBaseStorage.IsInitialized = false;
 }
Пример #4
0
 public void Dispose()
 {
     if (bucket != null)
     {
         bucket.Dispose();
         bucket = null;
     }
 }
Пример #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();
        }
Пример #7
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            timer?.Dispose();

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

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