public void Dispose() { bucket.Dispose(); bucket = null; ClusterHelper.Close(); GC.SuppressFinalize(this); }
private void Disconnect() { _cluster.CloseBucket(_bucket); _bucket.Dispose(); _bucket = null; _cluster.Dispose(); _cluster = null; }
public void Dispose() { bucket.Dispose(); bucket = null; //Closes the DB connection ClusterHelper.Close(); OrleansCouchBaseStorage.IsInitialized = false; }
public void Dispose() { if (bucket != null) { bucket.Dispose(); bucket = null; } }
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(); }
public void Dispose() { if (disposed) { return; } disposed = true; timer?.Dispose(); lock (syncRoot) { if (!removedFromQueue && !reQueued) { Requeue(); } } bucket?.Dispose(); }
public void Dispose() { _bucket.Dispose(); ClusterHelper.Close(); }
public override void Dispose() => bucket?.Dispose();
public void TearDown() { _bucket.Dispose(); _cluster.Dispose(); }
/// <summary> /// Dispose /// </summary> public void Dispose() { _bucket.Dispose(); }
private void FreeUpStuff() { bucket.Dispose(); cluster.Dispose(); }